如何查找仅安装了facebook应用程序的朋友?

编程入门 行业动态 更新时间:2024-10-26 06:26:07
本文介绍了如何查找仅安装了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应用程序的朋友?

本文发布于:2023-10-28 08:42:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1536128.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   朋友   安装了   facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!