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

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

问题描述

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



如果很少用户授权应用程序A,那么有可能知道目前有多少用户正在使用应用程序A(用户不是彼此的朋友)



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

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

解决方案

您无法从API获取应用程序用户的列表。如果需要,您应该保留自己的用户数据库并参考。



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



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


I am trying to fetch following case using FQL

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)

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())

解决方案

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.

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.

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天全站免登陆