如何在 Facebook Graph API 中获取好友详细信息? [英] How can I get friendship details in Facebook Graph API?
问题描述
如何获取两个人的好友关系详情?因此,例如在网络中,它将是:
How can I get a friendship detail for two people? So for example in the web it will be:
http://www.facebook.com/<my_id>?and=<friend_id>
有什么办法可以在 Graph API 中做到这一点?此外,我能否获得特定项目,例如照片、我们之间的墙贴等?(没有记录 AFAIK,但许多 Graph API 功能无论如何都没有......)
Is there any way I can do this in Graph API? Furthermore can I get specific items such as photos together, wall posts between us, etc? (Not documented AFAIK, but many Graph API features aren't anyway...)
我认为使用 Graph API 应该是可能的.例如,获取家庭详细信息(兄弟、姐妹、父母等)尚未记录在案,但我仍然可以这样做.
I think it should be possible with Graph API. For example getting family details (brother, sister, parents, etc) is not documented yet I still able to do it.
推荐答案
您可以通过执行多个 FQL 查询来模拟友谊查询.例如,要获取两个朋友 A 和 B 之间的所有照片,您可以:
You can simulate a friendship query by doing multiple FQL queries. For example, to get all the photos between two friends A and B, you can:
- 从 A 获取所有照片 (p)
- 获取p中B的所有标签(查询photo_tags表)
- 获取 B 对 p 的所有评论(查询评论表)
重复,这次从 B 中选择照片.
Repeat, this time selecting photos from B.
您可以将相同的概念应用于其他内容,例如帖子、赞、视频等.
You can apply the same concept on other things such as posts, likes, videos etc.
这篇关于如何在 Facebook Graph API 中获取好友详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!