简体   繁体   English

Facebook不再返回all_mutual_friends

[英]Facebook not returning all_mutual_friends anymore

I implemented graph api call to get mutual friends between two users, it was working fine but suddenly stopped working. 我实现了graph api调用,以在两个用户之间获得共同的朋友,它工作正常,但突然停止工作。 I have this api call 我有这个API呼叫

graph.facebook.com/v3.0/{facebook_id}?fields=context.fields(all_mutual_friends)&access_token={access_token}&appsecret_proof={appsecret_proof}

It returned the mutual friends in this call, but now the response is 它在此次通话中返回了共同的朋友,但现在的回复是

{
    "context": {
        "id": "..."
    },
    "id": "..."
}

And if I try to make a second call using context id I get an empty array 如果我尝试使用上下文ID进行第二次调用,则会得到一个空数组

graph.facebook.com/v3.0/{context_id}/mutual_friends?access_token={access_token}&appsecret_proof={appsecret_proof}

{
    "data": []
}

Both users have users_permissions accepted. 两个用户都接受了users_permissions。 Mutual friends api is pending to review but it should work between developer users, isn't it? 共同的朋友api有待审核,但应该在开发人员用户之间起作用,不是吗?

Mutual friends can only return users who authorized your App. 共同的朋友只能返回授权您的应用的用户。 That includes the list of mutual friends too, not just the two users in question. 这也包括共同朋友的列表,而不仅仅是相关的两个用户。 Which makes the Mutual Friends API pretty pointless, i guess. 我猜这使Mutual Friends API变得毫无意义。 That is why they removed it: 这就是为什么他们将其删除:

https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#friends-4-4 https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#friends-4-4

The Mutual Friends API is no longer available. Mutual Friends API不再可用。

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

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