【发布时间】:2021-07-19 09:29:10
【问题描述】:
我有一个测试业务应用程序,我可以在其中正常查询有关用户的信息。 我可以在我的 Facebook 页面上成功验证所需的范围。
这是我要求的范围:instagram_basic,instagram_content_publish,user_events,user_videos,user_posts
但是,当我尝试使用 this api 创建帖子时,出现错误。这是请求:
curl --location --request POST 'https://graph.facebook.com/me/media?access_token={ommited}' \
--form 'image_url="https://cdn1.vectorstock.com/i/thumbs/59/70/flat-robot-vector-20655970.jpg"' \
--form 'caption="nothing to see here :-"'
回复:
"error": {
"message": "Unsupported post request. Object with ID 'me' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api"
}
...
我也尝试了使用 user_id 而不是 me 的请求,但也不起作用。
【问题讨论】:
标签: facebook instagram instagram-graph-api