Facebook API returns 'Unsupported post request' when adding users to Custom Audience

≡放荡痞女 提交于 2019-12-24 13:41:33

问题


When I try to add users to a Custom Audience (using a POST to endpoint /{custom_audience_id}/users, with parameters users and hash_type), it gives me

{'error': {'message': 'Unsupported post request.', 'code': 100, 'type': 'GraphMethodException'}}

This message has popped up for other people on Stack Overflow when they try to do things for which they did not get the right Facebook permissions, but I do have ads_management permissions for the user (the user is actually my own account, so I have all the permissions). I have Ads API Access, and the message at the top of (https://developers.facebook.com/docs/reference/ads-api/custom-audience-api) says that even though Custom Audience API Access is different from Ads API Access, if you have Ads API Access then you also have Custom Audience API Access. And Ads API Access is not the issue (I can create Ad Campaigns, Ad Sets, Custom Audiences, etc.).

In conclusion, I have ads_management permission and Ads API Access, and can do a bunch of Ads stuff already, except when I try to add users to a Custom Audience, I get the above JSON-formatted error. Any guidance on why, or at least how to go about figuring out why?

(and the Facebook error code explanation for 100, "Invalid parameter", is largely no help, as are the vague error message and error type)

来源:https://stackoverflow.com/questions/24515115/facebook-api-returns-unsupported-post-request-when-adding-users-to-custom-audi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!