Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph API: get nearby places

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/

like image 207
Rajesh Avatar asked Sep 11 '14 21:09

Rajesh


1 Answers

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&center={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.

like image 65
Tobi Avatar answered Oct 06 '22 22:10

Tobi