如何编写 fql 查询来列出特定位置的好友

2024-02-21

我无法在任何地方找到 fql 查询来根据我指定的位置列出我的 facebook 好友。我正在尝试在 android 中实现此 fql 查询。请有人帮助我。


您正在寻找的 FQL 将是

select name, current_location
from user 
where uid in (select uid2 from friend where uid1 = me()) 
  and current_location.country = "India" 
  and current_location.state ="Delhi"

上面的FQL过滤掉用户的好友并返回用户的好友列表current_location如印度德里。您可以根据其他属性进一步过滤列表current_location like city, zip, latitude, longitude和别的。

您需要额外的friends_location访问该位置的权限User https://developers.facebook.com/docs/reference/fql/userFQL 表。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何编写 fql 查询来列出特定位置的好友 的相关文章

随机推荐