Facebook API people search filtered by country

2020-06-22 00:07发布

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.

5条回答
ゆ 、 Hurt°
2楼-- · 2020-06-22 00:17
 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
查看更多
啃猪蹄的小仙女
3楼-- · 2020-06-22 00:19

try this:

http://graph.facebook.com/search?q=mccain%20chips&type=post&locale=en_US
查看更多
干净又极端
4楼-- · 2020-06-22 00:20

It seems this is not possible with Facebooks API.

查看更多
啃猪蹄的小仙女
5楼-- · 2020-06-22 00:31

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 .
查看更多
甜甜的少女心
6楼-- · 2020-06-22 00:34

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
查看更多
登录 后发表回答