You need the following to make the API call:
user
- System user id that you created['MANAGE']
, ['ADVERTISE']
and ['ANALYZE']
.access_token
- of an admin user or admin system user.To assign system user permissions to an ad account, make the following POST
request:
curl \ -F "user=APP_SCOPED_SYSTEM_USER_ID" \ -F "tasks=['MANAGE', 'ADVERTISE', 'ANALYZE']" \ -F "business=BUSINESS_ID" \ -F "access_token=ACCESS_TOKEN" \ "https://graph.facebook.com/VERSION/act_AD_ACCOUNT_ID/assigned_users"
You need the following to make the call:
user
- System user id that you created['MANAGE']
, ['CREATE_CONTENT']
, ['MODERATE']
, ['ADVERTISE']
and ['ANALYZE']
access_token
- of admin user or admin system user.To assign system user permissions to a page, make this POST
request:
curl \ -F "user=APP_SCOPED_SYSTEM_USER_ID" \ -F "tasks=['ADVERTISE', 'ANALYZE']" \ -F "access_token=ACCESS_TOKEN" \ "https://graph.facebook.com/VERSION>/PAGE_ID/assigned_users"
You may request access to an ad account or a page owned by another Business Manager. Or a business can grant access to assets owned to another business. See Business Assets.
System users can have access for these proxied assets for their given tasks. The idea behind this is to provide mechanism to make API calls to ad accounts or Pages that your business manager handles for your clients.
To see permissions that a system user has over assets, you need:
business_id
- Business Manager owning this system useraccess_token
- Of user with business_management
permission or an admin userThen, make this call:
curl -G \ -d "fields=email,assigned_ad_accounts,assigned_pages" \ -d "access_token=ACCESS_TOKEN" \ https://graph.facebook.com/VERSION/APP_SCOPED_SYSTEM_USER_ID