> For the complete documentation index, see [llms.txt](https://docs.chord.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chord.co/activate/data-activations/destination-set-up-notes/facebook-ads-meta.md). Agents can also search and read this documentation through its [MCP server](https://docs.chord.co/~gitbook/mcp).

# Facebook Ads (Meta)

This page describes how to connect Facebook Ads (Meta) as a Data Activation

### Getting started

Facebook Ads support two separate authentication mechanisms: OAuth and System User. Chord recommends using `System User` for the most reliable connection long term as it does not require re-authentication every 60 days.

### Using a system user (recommended)

The steps to create a [Facebook System User](https://www.facebook.com/business/help/327596604689624?id=2190812977867143) are more complex than using OAuth, but it's the most reliable way to connect to Facebook Ads, especially if you intend to use the connection long term.

A regular system user is recommended over an admin system user. You can use an existing system user or create a new one with the following steps:

* To generate a system user token, you'll first need an application. If you don't have one already, you can create one with the following steps:
  * Open your Business Manager
  * Navigate to **Business Settings > Accounts > Apps**
  * Click **Add** and then **Create New App ID**
  * For use case select **Other**
* Then for Type select **Business**

![Create a new app ID or connect an existing app](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-e8f449262310c36ae59a73d929635fab78b7ee88%2Ffacebook-ads-meta-1.png?alt=media)

![Select the "Other" Use Case](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-c2b7b95450a992f1999a9c8a3e16d6ec295e6458%2Ffacebook-ads-meta-2.png?alt=media)

* Then fill out the relevant details and press **Create App**

![Add app details](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-2ccc893605973329e4bed8dedb8a3ebbe896ce92%2Ffacebook-ads-meta-3.png?alt=media)

* Now you can generate a system user for the app. Go to your Business Manager and navigate to **Business Settings > Users > System Users**

Above your list of system users click **Add** to create a new System User

1. Provide a name and role. Chord does **not** need an Admin role, Employee is sufficient.
2. Once the system user is created click on **Add Assets** and add the Application you created in step one. Make sure to assign *full control* of the app to the system user.

![Generating a system user](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-627be28dfed63501b96e3c51b1ef2a395e7eacf5%2Ffacebook-ads-meta-4.png?alt=media)

* You'll also need to assign your System User \*full control \*over any Ad Accounts that own any Custom Audiences you'd like to sync data to.

![Granting full access to relevant ad accounts](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-539ff95fb31ba338431fb763c9ec1181ad6aa4d0%2Ffacebook-ads-meta-5.png?alt=media)

![Granting ad account access](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-45a4eaedeb1fd18090f818e5df3ad26ba3283f28%2Ffacebook-ads-meta-6.png?alt=media)

* Now generate a token for the System User by pressing **Generate New Token.**
  * You will need to provide the following scope for Chord to sync to your Facebook Conversions and Custom Audiences: *ads\_management*
  * Make sure to select `Never` for token expiration so you do not need to manually reauthorize your Chord connection every 60 days.

![Generating a token](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-1b8c2bd78ada3bc46a6cbdc37f3b729ad74b1fd2%2Ffacebook-ads-meta-7.png?alt=media)

![Set the app for token generation](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-c9038562efa00d3dd49fefc764ab1d1638df1eeb%2Ffacebook-ads-meta-8.png?alt=media)

![Set the expiration for token generation](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-41974cff6779609e5b6a396de245bee8625a8f9a%2Ffacebook-ads-meta-9.png?alt=media)

![Set the permissions for token generation](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-062845dc1fcb191b5fe322d3cb08839e80f6e37a%2Ffacebook-ads-meta-10.png?alt=media)

![Collect & save your token](https://2938842758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Oy2IAsu7IvAGAlWgC36%2Fuploads%2Fgit-blob-690ff39aacbe484633643dbadec40cbe5603f9e4%2Ffacebook-ads-meta-11.png?alt=media)

* Once your token is generated be sure to save it in a safe place. This is the token you must provide to Chord Data Activations as a credential for your connection.

{% hint style="info" %}
To validate that your System User Token is set up correctly and has the necessary scopes you can input your access token in the link below.

[***https://developers.facebook.com/tools/debug/accesstoken***](https://developers.facebook.com/tools/debug/accesstoken)
{% endhint %}

### Using an existing system user

If you already have a system user you can use it by simply generating a new token with the correct permissions. Be sure to assign the asset for your Application to your System User with full control. Chord Data Activations needs the *ads\_management* scope.

### Using oauth

If you'd like to use OAuth, connecting to Facebook Ads is as simple as clicking the "Connect" button and following the prompts. Chord will guide you through the process of authenticating with Facebook and selecting the ad accounts you'd like to sync data from.

The downside of this method is that authentication will expire every 60 days and require re-authentication. We recommend using a System User for the most reliable connection long term.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chord.co/activate/data-activations/destination-set-up-notes/facebook-ads-meta.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
