facebook business manager, create system user -


this may bit of newbie question, i'm struggling create admin system user (and system user) facebook business manager through graph-api.

following guide: https://developers.facebook.com/docs/marketing-api/businessmanager/systemuser/v2.3#systemuser

posting this:

  curl \  -f "name=ad server" \  -f "role=system_user" \  -f "access_token=<access_token>" \  "https://graph.facebook.com/<api_version>/<business_id>/system_users" 

i'm getting error:

{   "error": {     "message": "(#3) business manager must on whitelist",      "type": "oauthexception",      "code": 3   } } 

i'm doing on newly created business manager, linked (public) facebook app (whitelisted) , has public page. company i'm doing has lot of activity on business account, i'm using safe test environment. cant find information on how business manager whitelisted.

the access token belongs admin user on business account. i've tried other operations (like fetching users) on business account token , works fine.

the reason why i'm doing in first place, need api user automated campaign-setup manage adsets, custom audiences, adsets , ads. user should not directly linked personal facebook account. creating dummyaccount seems bad , possibly insecure solution.

any help/suggestions appreciated.

i have run same issue seconds ago. have tried graph-api , business manager (which seems more comfortable).

just have at: https://developers.facebook.com/docs/marketing-api/businessmanager/faq

q: access token used create system user? a: create system user , fetch token using business manager ui @ business.facebook.com, under settings→system user. you'll see system user panel if bm owns , app has ads-api access, or owns app specially whitelisted fb rep.

this means:

  1. create app want use in first place
  2. add app business (also somewhere within business manager)
  3. add admin-users ip @ https://developers.facebook.com/apps/<yourappid>/settings/advanced/
  4. try system user creation again

it has worked in case.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -