Skip to main content

Authorization

Follow this guide to create a new Facebook Ads credential that will allow Nexla to authenticate to and exchange data with your Facebook Ads account.
fb_ads_api_auth.png

Facebook Ads

Prerequisites

Before creating a Facebook Ads credential, you need to obtain a System User Access Token from your Facebook Business account. The System User Access Token is required to authenticate with the Facebook Ads API.

To obtain your System User Access Token, you need to have a Facebook Business account with API access enabled and a System User configured. Once you have access to your account, you can generate a System User Access Token from your Facebook Business Manager. The System User Access Token must have permissions to the Facebook resources you want to access. The access token is sent in the Authorization header with the Bearer prefix for all API requests to the Facebook Ads API. For detailed information about System User setup and authentication, refer to the Facebook Marketing API documentation.

Create a Facebook Ads Credential

  • To create a new Facebook Ads credential, after selecting the data source/destination type, click the Add Credential tile to open the Add New Credential overlay.

New Credential Overlay – Facebook Ads

FacebookAdsCred.png

Credential Name & Description

  1. Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.

    Resource descriptions are recommended but are not required. They should be used provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

System User Access Token

  1. Enter your Facebook System User Access Token in the System User Access Token field. This is the System User Access Token you obtained from your Facebook Business Manager. The System User Access Token must have permissions to the Facebook resources you want to access. The access token is sent in the Authorization header with the Bearer prefix (e.g., Bearer {token}) for all API requests to the Facebook Ads API.

    Keep your System User Access Token secure and do not share it publicly. The System User Access Token provides access to your Facebook Ads account and should be treated as sensitive information. The System User Access Token must have permissions to the Facebook resources you want to access. The access token is sent in the Authorization header with the Bearer prefix for all API requests to the Facebook Ads API. For detailed information about System User setup, obtaining access tokens, and managing permissions, see the Facebook Marketing API documentation.

Save the Credential

  1. Once all of the relevant steps in the above sections have been completed, click the Save button at the bottom of the overlay to save the configured credential.

  2. The newly added credential will now appear in a tile on the Authenticate screen during data source/destination creation and can be selected for use with a new data source or destination.