Jones
Jones

Reputation: 375

Facebook graph api last known location

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

Answers (1)

Eric
Eric

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

Related Questions