Facebook graph api 使用facebook Graph API让facebook测试用户成为朋友

Facebook graph api 使用facebook Graph API让facebook测试用户成为朋友,facebook-graph-api,Facebook Graph Api,我在facebook上有两个测试用户。 我想使用Facebook Graph API与他们交朋友: https://graph.facebook.com/v2.6/user1_id/friends/user2_id?access_token=user1_access_token method: post 我得到一个错误: { "error": { "message": "(#33) This object does not exist or does not support this acti

我在facebook上有两个测试用户。 我想使用Facebook Graph API与他们交朋友:

https://graph.facebook.com/v2.6/user1_id/friends/user2_id?access_token=user1_access_token
method: post
我得到一个错误:

{
"error": {
"message": "(#33) This object does not exist or does not support this action",
"type": "OAuthException",
"code": 33,
"fbtrace_id": "A7EHydY_B4x......."
}
}
有人能帮忙吗

谢谢。

需要应用访问令牌来更新与该应用关联的任何测试用户的这些字段


您需要为此使用应用程序访问令牌,而不是用户令牌。

表示,您不能使用此端点执行发布操作。那么,你从哪里发现了这个被描述为有效的API调用呢?这里有人说他做到了:你有没有其他方法可以让测试用户成为朋友呢?那是大约六年前的四个API版本…(当涉及到FB API时,首先不要依赖任何旧的东西,始终要阅读文档中当前可用的内容。)看起来他们可能只是简单地删除了这个,所以你需要通过应用程序仪表板手动让他们成为朋友。