Facebook图形api观众fbid不接受

时间:2017-10-06 10:54:25

标签: facebook graph

我想整合facebook的观众sdk.Documents很难解决。我被困在一个地方

FacebookAdsApi.init(app_id=APP_ID,app_secret=APP_SECRET,access_token=ACCES

_TOKEN)
ad_account = AdAccount(fbid=FACEBOOK_ID)

params = {
    CustomAudience.Field.subtype: CustomAudience.Subtype.custom,
    CustomAudience.Field.name: 'My new CA',
    CustomAudience.Field.description: 'People who bought on my website',
}
audience = ad_account.create_custom_audience(params=params)

当我在python上发送reqeust时,我发现了底层警告。但我确定我的fbid是真的我获得了必要的权限,但仍然是相同的情况

Status:  400
  Response:
    {
      "error": {
        "fbtrace_id": "HyhfMfSiw3S",
        "type": "GraphMethodException",
        "message": "Unsupported post request. Object with ID 'act_xxxxxxxx' 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",
        "error_subcode": 33,
        "code": 100
      }
    }

1 个答案:

答案 0 :(得分:0)

您需要确保您使用的应用访问令牌可以访问您的Facebook广告项目。