I'm able to return a location's details by sending a query via the graph api with the location's ID, however I'm looking to achieve the reverse - effectively find location id by sending a request containing the location name (city, state etc). Is this possible?
Here are three ways Facebook tracks your location: Location services – This involves your phone or tablet's GPS coordinates, as well as Wi-Fi and cellular network locations. IP address – IP (internet) addresses give a vague idea of your whereabouts, sometimes down to the postcode.
Open the Settings & Privacy option and tap on the Privacy Shortcuts option. Tap on the Manage your location settings option. Tap on the Location history option that should have a small cog wheel next to it. Toggle the Location history slider on and off to have Facebook record your location.
This is possible under a few different approaches. You can either search using long / lat positions and put the place name into the query. This search will search places only.
Do the following
https://graph.facebook.com/search?q=ritual&type=place¢er=37.76,-122.427&distance=1000&access_token=mytoken.
This will return ritual coffee.
Another way is to search through facebook pages using the following https://graph.facebook.com/search?q=ritual%20coffee&type=page&access_token=mytoken
This way is more difficult as you will obviously need to parse the list in more detail.
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