Reputation: 6395
I'm Integrating the Facebook SDK 3.0 to my android app, I've the facebook page Id, I want to add a check-in button to the application, action of this button is user can only checking if he/she in the place/ close to the place (500M), if not i want to show an error alert.
how do i do it with Facebook sDK 3.0 using the graph API
Upvotes: 1
Views: 1493
Reputation: 1091
Update to api requires that you do "/{pageId}?fields=location" which then returns a Location object type containing various geo fields.
Upvotes: 0
Reputation: 15662
If you have the page ID, you can query the graph API by sending a request to https://graph.facebook.com/page_id
The result should have the latitude/longitude of the place. You can try it out yourself by using the graph explorer
https://developers.facebook.com/tools/explorer
Upvotes: 1