如何查找仅安装了facebook应用程序的朋友? [英] How to find only facebook app installed friends?

查看:87
本文介绍了如何查找仅安装了facebook应用程序的朋友?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Facebook上使用一个应用程序,我想找出仅包含在Facebook上安装了相同应用程序的朋友的列表,而不是整个朋友列表.我正在使用图形API调用

I am using an app on facebook, I want to find out list which includes only friends who installed same app in there facebook rather than the whole friend list. I am using graph api call

推荐答案

进行Graph API调用:

Making a Graph API call to:

me/friends?fields=installed,name

这将为您提供当前用户的完整朋友列表,但是,它将包括一个名为installed的附加字段.如果将其设置为true,则表示该朋友已经安装了该应用程序.您必须浏览列表,并过滤出具有"installed": true

This will give you the entire list of friends for the current user, however, it will include an additional field called installed. If this is set to true, it means the friend has installed the app. You'll have to go through the list and filter out anyone who has "installed": true

或者,您可以使用以下FQL查询:

Alternatively, you can use the following FQL query:

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

这篇关于如何查找仅安装了facebook应用程序的朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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