Facebook打开图表,过滤朋友列表数组 [英] Facebook open graph, filtering friends list array

查看:97
本文介绍了Facebook打开图表,过滤朋友列表数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用程序过滤使用开放图表的朋友列表。登录我的网站的用户只能看到他们的朋友也使用我的应用程序。我已经注意到了许多应用程序,如Quora,Thumb等。如何使用php?

I want my application to filter the friends list I get using the open graph. People who login into my site must see only their friends who also use my app. I've noticed this on many applications like Quora, Thumb etc. How can it be done using php?

推荐答案

可以很容易地在使用FQL查询 用户 表(结合 朋友 表) - 有一个字段 is_app_user ,所以查询像

Can easily be done when you use FQL to query the user table (in conjunction with the friend table) – that has a field is_app_user, so a query like

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

将只返回当前用户的那些也是您应用的用户的朋友。

will return only those friends of the current user that are also users of your app.

这篇关于Facebook打开图表,过滤朋友列表数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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