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



我在任何地方都找不到根据我指定的位置列出我的facebook好友的fql查询。我正在尝试在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的其他属性(如cityziplatitudelongitude等)进一步筛选列表。

您需要额外的friends_location权限才能从用户FQL表访问该位置。

最新更新