我尝试使用此调用删除对#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有效且不会遗漏权限。
有没有更好的方法,任何想法?
答案 0 :(得分:0)
每https://developers.facebook.com/docs/marketing-api/guides/instagramads/post_moderation/v2.6,您需要将注释ID作为网址参数。
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//
因为图谱API网址刚刚起作用。
答案 1 :(得分:0)
这已被确认为营销api中的错误 https://developers.facebook.com/bugs/261618244219382/