2

我想通过该应用在 Facebook 上的给定个人资料上发布一个链接。使用 access_token 和其他必要参数发布到https://graph.facebook.com/PROFILE_ID/links 。出于测试目的,我使用 Graph API Explorer 获得了 access_token,并获得了 publish_stream 和 share_item 扩展权限。

然后我得到了错误

{
   "error": {
      "message": "An access token is required to request this resource.",
      "type": "OAuthException",
      "code": 104
   }
}

我为 PROFILE_ID 尝试了 fb_id 和 fb_username 但得到了同样的错误。哪里不对了?

谢谢

4

1 回答 1

1

是的。/links是只读的。要创建链接,您需要 POST 到/USER_ID/feed.

https://developers.facebook.com/docs/reference/api/user/#links

于 2013-02-01T01:10:44.353 回答