简体   繁体   English

Facebook API共同好友计数(仅计数)

[英]Facebook API Mutual Friends Count (Count Only)

I would like to show mutual friends (Just a number X mutual friends - no other information) on a users profile who has signed up in an app I am working on. 我想在已经使用我正在开发的应用程序中注册的用户个人资料上显示共同的朋友(只是一个X共同的朋友-没有其他信息)。

We had planned to do this using the list of friends ID's however this is now not accessible since Facebook updated it's permissions around this. 我们曾计划使用好友ID列表来执行此操作,但是由于Facebook更新了此权限,因此现在无法访问。

Is there any way to do this now? 现在有什么办法吗? I was looking at taggable_friends, would we be able to use this for that. 我正在看taggable_friends,我们可以使用它吗?

Thankyou 谢谢

Have a look at my answer at Fetch Facebook Mutual friends between me and another User 看看我在获取我和另一位用户之间的Facebook共同朋友时的回答

This should solve your question. 这应该可以解决您的问题。 The docs are here: https://developers.facebook.com/docs/graph-api/reference/v2.1/user.context/mutual_friends 这些文档在这里: https : //developers.facebook.com/docs/graph-api/reference/v2.1/user.context/mutual_friends

Use the summary.total_count filed of the response to determine how many friends the two users have in common. 使用响应的summary.total_count来确定两个用户共有多少个朋友。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM