如何确定当前登录的用户的哪些朋友也在使用我的应用程序? [英] How can I determine which friends of the currently logged in user are also using my app?

查看:92
本文介绍了如何确定当前登录的用户的哪些朋友也在使用我的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Graph API 使我很容易确定谁的朋友当前用户是。我有两个问题:

The Graph API makes it easy for me to determine who the friends of the current user are. I have two questions:


  1. 可以使用Graph API来确定当前身份验证的应用程序的用户列表吗? li>
  2. 是否可以确定当前用户谁也是我的应用程序的用户的朋友(我的应用程序的用户和当前用户的朋友的交集)?是否可以使用FQL?


推荐答案


  1. 不,这是不可能。请参阅这个答案

  2. 有一种称为 friends.getAppUsers 为此。或者您可以使用FQL:

  1. No, This is not possible. Refer to this answer.
  2. There's a rest method called friends.getAppUsers for this. Or you could use FQL:

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


这篇关于如何确定当前登录的用户的哪些朋友也在使用我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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