通过Facebook图形API在Facebook的时间轴中发布上传

时间:2019-08-19 05:53:56

标签: facebook facebook-graph-api

我是Facebook图形API的新手。我可以轻松地在FB的页面上发布上传内容。但我想在时间表中上传。但是我出错了。

请求:

 POST API 

 https://graph.facebook.com/v3.0/me/photos?access_token=<user_accessToken>&url=https://www.facebook.com/images/fb_icon_325x325.png&caption=Test photo upload

响应:

{
"error": {
    "message": "(#200) This endpoint is deprecated since the required permission publish_actions is deprecated",
    "type": "OAuthException",
    "code": 200,
    "fbtrace_id": "A6EzpIcMC9-hZcDlTPA6iPG"
}

}

请,向我解释如何在时间轴上上传帖子。

Ref。,https://developers.facebook.com/docs/graph-api/photo-uploads/

1 个答案:

答案 0 :(得分:0)

无法再发布到用户个人资料,因为错误消息告诉您。不再有API,您只能使用“共享”对话框:https://developers.facebook.com/docs/sharing/reference/share-dialog

包含弃用信息的变更日志:https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#4-24-2018