> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Facebook Ads with Page Access Token

> Link your Facebook Ads account in the StackOne Hub with Page Access Token, then use its actions in StackOne.

> [!WARNING]
>
> This guide starts from an existing system user and its access token. Create them first with the System User Access Token guide.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Page access for the system user

A Page access token covers one Facebook Page, so the system user needs access to that Page first.

**1. Assign the Page to the system user**

Sign in to [Meta Business Suite](https://business.facebook.com/) and open **Settings** > **System users**.

<ul>
  <li>Select your system user.</li>
  <li>Click **Assign assets**. When the system user already has assets, it's in the menu next to **Revoke tokens**.</li>
  <li>Under **Select asset type**, click **Facebook Pages**.</li>
  <li>Select the Page whose lead forms and leads you want to read.</li>
  <li>Under **Partial access (business tools and Facebook)**, turn on **Content, Messages, Community activity, Ads, Insights, Leads, Creator content, Creator management**.</li>
  <li>Click **Assign assets**.</li>
</ul>

![Select assets and assign permissions dialog with a Page selected, the Leads access switch turned on and the Assign assets button highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/page_access_token-config-assign-page.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=df8b3ac08f177f1eac7a3ab9290f2f43)

## Page access token retrieval

The Graph API Explorer returns an access token for each Page the system user can access.

**1. Request the Page tokens**

Enables actions: Create Lead Gen Form, Create Test Lead, Delete Lead, Get Lead, Get Lead Gen Form, Get Me, List Lead Gen Forms, List Leads By Ad, List Leads By Form

Sign in to the [Graph API Explorer](https://developers.facebook.com/tools/explorer/). The system user access token needs every permission listed.

<ul>
  <li>**Meta App**: The app your system user access token was generated for</li>
  <li>**Access Token**: The system user access token you generated. If you didn't keep it, select the system user in **Business settings** and click **Generate token** again, then replace any token already in the field</li>
  <li>In the query field, enter `me/accounts?fields=name,access_token`.</li>
  <li>Click **Submit**.</li>
</ul>

![Graph API Explorer with the me/accounts query, the Access Token field and the Submit button highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/page_access_token-config-request-tokens.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=136b2048c5d494e64a5a5e11ae414e59)

<ul>
  <li>
    ads\_management
  </li>

  <li>
    leads\_retrieval
  </li>

  <li>
    pages\_manage\_ads
  </li>

  <li>
    pages\_manage\_metadata
  </li>

  <li>
    pages\_read\_engagement
  </li>

  <li>
    pages\_show\_list
  </li>
</ul>

**2. Copy the Page access token**

The response lists one entry per Page, each with its `name`, `access_token` and `id`.

<ul>
  <li>Find the entry whose `name` is your Page.</li>
  <li>Its `access_token` is the **Page Access Token**. Copy the **Page Access Token** across.</li>
  <li>Its `id` is the **Page ID**. Copy the **Page ID** across.</li>
</ul>

![Graph API Explorer response with the access\_token line of the Page entry highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/page_access_token-config-copy-token.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=834520b88a59b3325ca811e7cc2f1cf0)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/facebookads/guides/webhook-setup.md)
>
> Configure receiving Events for Facebook Ads into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.