使用 FQL 获取使用特定应用程序的 Facebook 用户列表 [英] get list of facebook users who are using specific application using FQL

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

问题描述

我正在尝试使用 FQL 获取以下案例

I am trying to fetch following case using FQL

如果很少有用户对应用程序A"进行了授权,那么是否可以知道当前有多少用户在使用应用程序A"(彼此不是朋友的用户)

If few users have authorized "Application A" then is it possible to know that currently how many users are using that "Application A" ( users those are not friends of each other)

到目前为止,我尝试遵循 FQL,但以下查询仅提供了那些用户的信息彼此是朋友并使用相同的应用程序,但是其他不是朋友的用户呢?

So far i tried following FQL , but following query gives only information of those users who are friends of each other and using the same application , but what about other users who are not friends ?

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

推荐答案

您无法从 API 获得应用程序用户的列表.如果您需要这个,您应该维护自己的用户数据库并参考该数据库.

You can't get a listing of your application's users from the API. If you need this, you should maintain your own database of users and reference that.

您还可以通过使用您的应用程序访问令牌请求 /USER_ID/permissions?fields=installed 来检查任何特定用户是否是您应用程序的用户.

You can also check if any particular user is a user of your application by requesting /USER_ID/permissions?fields=installed with your application access token.

您还可以通过在朋友连接上请求相同的字段(例如,/USER_ID/friends?fields=installed)来检查用户的朋友是否是您的应用程序的用户.在这种情况下,USER_ID 必须是您应用的用户,否则您将无法访问他们的好友列表.

You can also check if a user's friends are users of your application by requesting the same field on the friends connection (for example, /USER_ID/friends?fields=installed). In this case, the USER_ID must be a user of your application or you won't be able to access their friends list.

这篇关于使用 FQL 获取使用特定应用程序的 Facebook 用户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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