如何在Facebook Graph API中获得友谊的详细信息? [英] How can I get friendship details in Facebook Graph API?

查看:76
本文介绍了如何在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:


  1. 从A

  2. 获取p中的所有标签(在photo_tags表上查询)

  3. 获取B上p所提供的所有评论(评论表上的查询) / li>
  1. Get all photos (p) from A
  2. Get all tags of B in p (query on the photo_tags table)
  3. Get all comments made by B on p (query on the comments table)

重复此次,从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屋!

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