简体   繁体   English

Facebook API v6.0 寻找共同的朋友

[英]Facebook API v6.0 to find mutual friends

With the most recent version (6.0) of the Facebook Graph API, there are no longer endpoints to find mutual friends between two users or get the friends list of a user.使用最新版本 (6.0) 的 Facebook 图表 API,不再有端点来查找两个用户之间的共同好友或获取用户的好友列表。

If I want to find the number of mutual friends of two users on my app, how would I go about doing so?如果我想在我的应用程序上找到两个用户的共同朋友的数量,我会怎么做? go I can get the number of mutual friends who are also using the app ( https://developers.facebook.com/docs/graph-api/reference/user/friends/ ), but what if I want to get the total number of mutual friends?我可以获得也在使用该应用程序的共同朋友的数量( https://developers.facebook.com/docs/graph-api/reference/user/friends/ ),但是如果我想获得共同的朋友?

You can't do that any more.你不能再那样做了。

https://developers.facebook.com/docs/graph-api/changelog/version3.1#mutual-friends-api : https://developers.facebook.com/docs/graph-api/changelog/version3.1#mutual-friends-api

Mutual Friends API互友API
These changes apply to v3.1+, and will apply to all versions on October 24, 2018.这些更改适用于 v3.1+,并将于 2018 年 10 月 24 日适用于所有版本。

The Mutual Friends API was deprecated on April 4, 2018, and the endpoints below started returning empty data sets. Mutual Friends API 已于 2018 年 4 月 4 日弃用,以下端点开始返回空数据集。 The endpoints are now fully deprecated and will return an error.端点现在已完全弃用,并将返回错误。

/user-context/all_mutual_friends /user-context/all_mutual_friends
/user-context/mutual_friends /user-context/mutual_friends
/user-context/three_degree_mutual_friends /user-context/three_degree_mutual_friends

This has been removed for good, and there is no current replacement.这已被永久删除,目前没有替代品。

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

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