Facebook API people search filtered by country

2020-06-21 23:38发布

问题:

I'm trying to search people using the Facebook API (Graph API or FQL, whichever works). Up to this point, it's working just fine but I can't get it to be filtered by country or language.

I'm currently retrieving this URL:

'https://graph.facebook.com/search?q=' . somename . '&type=user&access_token=' . $access_token

I have tried adding &locale=... but that didn't work either.

回答1:

try this:

http://graph.facebook.com/search?q=mccain%20chips&type=post&locale=en_US


回答2:

I didn't find a way to filter according to a locale but there is a way to have the locale field with users informations :

https://graph.facebook.com/search?q=NAME&type=user&fields=locale,name&access_token=ACCESS_TOKEN


回答3:

 https://graph.facebook.com/search?q=SOME_SEARCH&type=user&center=37.76,122.427&distance=1000


http://graph.facebook.com/search?q=SOME_SEARCH&type=user&locale=en_US


回答4:

one of the more sophisticated methods is by fetching data from

www.facebook.com/search/results.php?q=paritosh&type=users&lo=812057

You can also fetch data from this link but it requires you logged in

http://www.facebook.com/search/ajax/?__a=1&lo=812057&q=paritosh&type=users&__user=1818667565

describing parameters :

  • lo=location point
  • q= query
  • type= users
  • __user = yours profile user id .


回答5:

It seems this is not possible with Facebooks API.