Facebook Graph API - 使用应用程序的朋友 [英] Facebook Graph API - Friends using application

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

问题描述

在Facebook.php库中是否有一个函数用于使用某个应用程序来获取用户的朋友。一些东西:

Is there a function in the Facebook.php library for getting friends of the user using a certain application. Something like:

$friends = $facebook->api('me/friends?access_token=' . $access_token);

但是,除了列出所有的朋友,它只是列出了使用相同应用程序的朋友。

But instead of listing all friends, it just lists friends using the same application.

推荐答案

您应该可以使用FQL执行此操作:

You should be able to do this with FQL:

select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1

这篇关于Facebook Graph API - 使用应用程序的朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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