Reputation: 375
How can i get the last known location with the Facebook API? I tried
NSLog(@"%@", user.location);
But i receiving, null.
Upvotes: 1
Views: 157
Reputation: 5681
Would need more information. What method are you calling this in?
You should be getting this information from an FBRequest which will return an NSDictionary on success. Then you can do...
[[dict objectForKey:@"location"] objectForKey:@"name"];
Which will return the name of their location.
Upvotes: 1