Facebook API people search filtered by country

时间秒杀一切 提交于 2019-12-09 13:29:59

问题


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.



来源:https://stackoverflow.com/questions/8287284/facebook-api-people-search-filtered-by-country

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!