首页 文章

Facebook api用于创建业务经理导致权限错误

提问于
浏览
0

我正在测试facebook业务经理API . https://developers.facebook.com/docs/marketing-api/business-manager-api . 我正在测试(创建业务经理API)
curl \ -F "name=Pomni Media" \ -F "vertical=ADVERTISING" \ -F "primary_page=<PAGE_ID>" \ -F "timezone_id=1" \ -F "access_token=<ACCESS_TOKEN>" \ "https://graph.facebook.com/<API_VERSION>/<USER_ID>/businesses"a test user .

我加了邮递员
POST https://graph.facebook.com/v2.7/125157388313921/businesses name : xxxx xxxx vertical: ADVERTISING primary_page: 2076479342635006 timezone_id: 1 access_token: EAAcikSwak2oBAI3... appsecret_proof: 0db84ee1ded55f9ce0ef4a9d91449940014...

它的结果是
{ "error": { "message": "(#200) Permissions error", "type": "OAuthException", "code": 200, "fbtrace_id": "FQmaUMdrdV3" } }

上述用户 125157388313921 的权限是 "user_birthday", "user_religion_politics", "user_relationships", "user_relationship_details", ... "user_managed_groups", "manage_pages", "pages_manage_cta", "pages_show_list", "publish_pages", "read_page_mailboxes", "ads_management", "ads_read", "status": "granted" "business_management", "public_profile" 获得所有权限 . Facebook应用程序具有业务经理可用级别 .
enter image description here

我正在处理这个问题5天,但还没有成功 . 任何提示都会欣赏!

更新:测试用户125157388313921由此API创建 . https://graph.facebook.com/APP_ID/accounts/test-users?installed=true&name=XXX+XXX&permissions=public_profile,user_friends,email,...,pages_manage_cta,pages_manage_leads,ads_read,ads_management,business_management&method=post&access_token=XXXX

1 回答

  • 0

    我尝试以business.facebook.com身份登录测试用户 .
    它说 "You are signed in to Facebook with a test user. Ad Manager is not available with this type of access, To use Business Manager sign in with your personal Facebook account" ,我尝试了真正的用户 business_manager 并获得了成功 .

相关问题