Context recovery in location-based social networks