Is there a way to pass in lat/long and get a list of nearby places using Graph API 2.1?
Was looking to allow a user to check in from an iOS app, but I'd like to provide a list of nearby places so that I know which place ID to pass into the feed end point.
https://developers.facebook.com/docs/graph-api/reference/v2.1/user/feed/
Yes, this is possible if you can get the lat/lng coordinate from your device. Have a look at https://developers.facebook.com/docs/graph-api/using-graph-api/#search
GET /search?q={query}&type=place¢er={lat},{lng}&distance={distance}
You can leave the {query}
blank if you don't want to narrow down your results
All Graph API search queries require an access token included in the request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With