使用图形API获取好友应用用户 [英] Get friend app user with graph API

查看:100
本文介绍了使用图形API获取好友应用用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过Graph API获得朋友的应用用户
我尝试使用 me / friends?fields = installed ,但是我收到了所有的朋友。也许,这里有一些错误。
请告诉我任何方式让你的朋友应用用户使用Graph API。我不知道在Facebook SDK 3.0中我可以让这个列表更容易吗?

解决方案

你可以得到用户名单的应用程序使用 FQL ,而不是Graph API:

  SELECT uid FROM user 
WHERE uid IN(SELECT uid2 FROM friend WHERE uid1 = me())
AND is_app_user = 1


I want to get friend app user with Graph API
I tried to user with me/friends?fields=installed but I got all of my friends. Maybe, I have some wrong in here.
Please show me any way to get friend app user with Graph API. I don't know in Facebook SDK 3.0 can I get that list easier?

解决方案

You can get list of friends whom are user of your app using FQL rather than Graph API as:

SELECT uid FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
AND is_app_user = 1

这篇关于使用图形API获取好友应用用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆