In 2010, Foursquare co-founder Naveen Selvadurai believed that his company, and several other social-media upstarts---Twitter, Tumblr, Path---could carve out successful niches against Facebook. But Facebook had other plans. That year the company introduced a feature that allowed users to “check in” at any location, a copy of the main feature of Foursquare’s app.