AwesomeGuy
AwesomeGuy

Reputation: 1089

Facebook Graph API search returning strange results

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.

Upvotes: 1

Views: 348

Answers (1)

BigFoppa
BigFoppa

Reputation: 51

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

Upvotes: 2

Related Questions