Facebook API人员搜索按国家过滤


Facebook API people search filtered by country

我试图使用Facebook API(图形API或FQL,无论哪种工作)搜索人。到目前为止,它工作得很好,但我无法按国家或语言过滤它。

我正在检索这个URL:

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

我已经尝试添加&locale=…

try this:

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

我没有找到根据区域设置进行过滤的方法,但是有一种方法可以让区域设置字段包含用户信息:

https://graph.facebook.com/search?q=NAME&type=user&fields=locale,name&access_token=ACCESS_TOKEN
 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

更复杂的方法之一是从

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

你也可以从这个链接获取数据,但它需要你登录

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

描述参数:

  • lo=定位点
  • q= query
  • type= users
  • __user =您的配置文件用户id。

对于facebook API,这似乎是不可能的。