PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, February 27, 2022

[FIXED] Facebook Graph API search returning strange results

 February 27, 2022     facebook, facebook-graph-api, facebook-php-sdk, php     No comments   

Issue

UPDATE: This was Facebook's internal bug, it is fixed.

I'm trying to get events from places that are around a specified location (currently testing only with Birmingham, UK). When I use facebook graph sdk to search for places with parameters center={lat},{lng}&distance=1600 (around 1 mile), in the first page of it's results everything looks fine, except there is one result from India, how is that possible?

$places = $fb->get("/search?type=place&center={$search[0]},{$search[1]}&fields=id,name,location,cover.fields(id,source),events.fields(id,event_times,is_canceled,ticket_uri,type,name,cover.fields(id,source),picture.type(large),description,start_time,end_time,attending_count,declined_count,maybe_count,noreply_count).order(chronological).since({$currentTimeStamp})&distance={$radius}", $access_token);

All results return their location with latitude and longitude, and all of them are close to each other, but there is only one result "Salt Lake City, India", that has completely different location from Birmingham...

Can anyone explain this to me?

EDIT Example on FB Graph Explorer example. For me, it shows one of the results to be from India, but it should only show from Birmingham.


Solution

Hi this is an open bug already reported. You can follow it here: Graph API Search for places gives results outside of distance radius



Answered By - BigFoppa
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing