如何通过Facebook API获取热门好友?
我知道我可以使用 https://graph.facebook.com/me/friends 交朋友 我也知道我可以通过 FQL 交朋友,如下所示: 选择uid,用户名 来自用户 哪里uid 在 ( 选择uid2 来自朋友 其中 uid1 = 我() 限制 20 ) 但我需要的是由你最常交往的朋友,即你的亲密朋友来订购这些。
这可能吗?
I know I can get friends using https://graph.facebook.com/me/friends
I also know I can get friends by FQL like so:
SELECT uid,username
FROM user
WHERE uid
IN (
SELECT uid2
FROM friend
WHERE uid1 = me()
LIMIT 20
)
But what I need is to order these by the friends you interact with most often, i.e. your close friends.
Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以搜索用户定义的列表。“亲密朋友”列表可能包含此类信息,尽管它是由用户自己手动编辑的(因此它可能为空或不准确)
you could search for the user's defined Lists.. The list "Close Friends" may contain such information though it is manually edited by the user himself (so it might be empty or not accurate)
您必须自己为此构建一个算法,涉及多个 FQL 查询(获得点赞、发表评论、常见照片标签等)。
You would have to build an algorithm out for this yourself involving the several FQL queries (get likes, post comments, common photo tags, etc).