如何写FQL查询列出的朋友在一个特定的位置 [英] how to write an fql query to list friends in a particular location
问题描述
我找不到任何地方的FQL查询列出我的Facebook朋友根据我的位置,我specify.I想实现在android.Someone这个FQL查询,请帮助我。
I can't find anywhere an fql query to list my facebook friends according to a location I that I specify.I am trying to implement this fql query in android.Someone please help me.
推荐答案
在FQL您正在寻找将是
The FQL you are looking for will be
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
如城市
,拉链其它属性列表code>,
纬度
,经度
等。
The above FQL filters out the friends of the user and returns list of user's friends with current_location
as Del India. You can further filter the list based on other attributes of current_location
like city
, zip
, latitude
, longitude
and others.
您将需要额外的 friends_location
权限才能通过的用户 FQL表。
You would require the additional friends_location
permission to access the location from the User FQL table.
这篇关于如何写FQL查询列出的朋友在一个特定的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!