Facebook Graph API - Place Distance Inaccurate

Digital Marketing Facebook Marketing API 3 years ago

5.54K 1 0 0 0

_x000D_ _x000D_ I am trying to use Facebook Graph API to retrieve a set of places at a certain coordinate. Using the API, I executed the following query: https://graph.facebook.com/search?access_token=APPTOKEN&type=place¢er=3.187501,101.627542&distance=50000&limit=500 Theoretically, this query should return 500 places within 50km of that coordinate. However, it only returned some 15 results that are within the immediate vicinity (say few hundred meters) of that coordinate. I tried changing the distance to 10000, 5000 or even 1000, while tweaking the limit parameter to figures such as 50, 100, 1000 but the total results remain the same. There are certainly other places nearby, i.e. if I change the query's coordinates to the following location which is less than a kilometer away, it returns a whole new result set: https://graph.facebook.com/search?access_token=APPTOKEN&type=place¢er=3.192022,101.625647&distance=50000&limit=500 Can someone please advice if my query is problematic, or that Facebook's Graph API is somehow limiting the distance or total results? Thank you.

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago
_x000D_ The fact that you only get 15 places in that kind of search was a bug on Facebook. This bug has been solved today so your query should work better now (I actually tried and it does). Anyway here you can see more details about this bug. What I personally don't know is this: Now your query returns around 450 results, if you limit it to 5km instead of 50km is still more or less the same amount of places. I tried queries with different distances and coordinates, seems to me that Facebook limits your total amount of results so you never have more than around 450 places. Even using pagination (with an offset) I can't manage to get more results (and I know there are more than 500 places within 50km around New York...) So if you find the answer to this I would be interested ;)
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum


Q

What are the best SEO tools for a personal website? What website or tools should I use to build and...

What are the best SEO tools for a personal website? What website or tools should I use to build and...
Q

Why is keyword research important?

Why is keyword research important?
Q

What is SEO ?

What is SEO ?