Facebook Graph API - Place Distance Inaccurate

Digital Marketing Facebook Marketing API 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating
_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.

Posted on 16 Aug 2022, this text provides information on Facebook Marketing API related to Digital Marketing. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 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 ;)

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.