0

我正在尝试使用此电话删除对#Instagram 广告帖子的评论

curl -X DELETE -G \
-d "access_token=<ACCESS_TOKEN>"\
-d "ad_id=<AD_ID>"\
"https://graph.facebook.com/<API_VERSION>/<INSTAGRAM_COMMENT_ID>"

但是我收到以下消息

{"error":{"message":"Unsupported delete request. Object with ID 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","type":"GraphMethodException","code":100,"fbtrace_id":"At\/K4NqgQ+9"}}

我确信 ad_id 是有效的,并且没有丢失权限。

有没有更好的方法,有什么想法吗?

4

2 回答 2

0

这已被确认为营销 API 中的错误 https://developers.facebook.com/bugs/261618244219382/

于 2016-07-14T11:41:03.870 回答
0

根据https://developers.facebook.com/docs/marketing-api/guides/instagramads/post_moderation/v2.6,您需要将评论 ID 作为 URL 参数。

curl -X DELETE -G \
-d "access_token=<ACCESS_TOKEN>"\
-d "ad_id=<AD_ID>"\
"https://graph.facebook.com/<API_VERSION>/<INSTAGRAM_COMMENT_ID>"

https://graph.facebook.com//因为 Graph API URL 不起作用。

于 2016-07-13T19:34:40.207 回答