Facebook graph api 交朋友';使用FacebookGraphAPI访问组

Facebook graph api 交朋友';使用FacebookGraphAPI访问组,facebook-graph-api,Facebook Graph Api,我正在开发一个Facebook应用程序,根据我所在的群组列出我的朋友 比如说,我是X组的成员。我想列出X组中的朋友 下面的查询似乎不起作用。 注意:我已选择了所有必要的权限您可以通过FQL查询来完成此操作 select uid from group_member where gid = xxxx and uid in (select uid2 from friend where uid1 = me() ) 其中xxxx是组id 或者,要返回您的所有组,可以: where gid in (

我正在开发一个Facebook应用程序,根据我所在的群组列出我的朋友

比如说,我是X组的成员。我想列出X组中的朋友

下面的查询似乎不起作用。


注意:我已选择了所有必要的权限

您可以通过FQL查询来完成此操作

 select uid from group_member where gid = xxxx and uid in (select uid2 from friend where uid1 = me() )
其中xxxx是组id

或者,要返回您的所有组,可以:

 where gid in (select gid from group_member WHERE uid = me());
这将简单地返回您朋友的UID。然后,您可以使用多查询返回有关它们的更多信息