使用Facebook Business Manager API将用户分配到页面时出错:用户不是Business Scoped

时间:2018-05-02 23:53:59

标签: facebook facebook-graph-api

我正在尝试使用/PAGE_ID/assigned_users API调用将用户作为ADVERTISER分配给Business Manager中的页面。

页面已连接到Business Manager,用户也已连接到Business Manager。

我认为要获取Business Scoped用户ID,我只需要发出call / me / ids_for_business并使用返回的ID(data.id)。

使用该ID时,会返回此错误:

{
  "error": {
    "message": "Invalid parameter",
    "type": "OAuthException",
    "code": 100,
    "error_subcode": 1752100,
    "is_transient": false,
    "error_user_title": "User is not Business Scoped",
    "error_user_msg": "The user ID provided is not business scoped. Please provide a business or a system user ID",
    "fbtrace_id": "CDFlxxGLsTJ"
  }
}

如果没有使用前面提到的电话,我如何获得业务范围的用户ID?

使用用户的实际Facebook ID的FWIW返回相同的错误。

1 个答案:

答案 0 :(得分:0)

使用此GET调用来吸引业务用户:

https://graph.facebook.com/v2.12/[business_id]/business_users?access_token=[accesstoken]

相关问题