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

sha*_*ath 5 android facebook-fql

根据我指定的位置,我无法在任何地方找到fql查询来列出我的Facebook好友.我正在尝试在android.Someone中实现这个fql查询请帮助我.

Anv*_*ena 3

您正在寻找的 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"
Run Code Online (Sandbox Code Playgroud)

上述 FQL 过滤掉用户的好友,并返回current_location印度德里的用户好友列表。您可以根据、、等其他current_location属性进一步过滤列表。cityziplatitudelongitude

您需要额外的权限才能访问用户friends_locationFQL 表中的位置。