> ## 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.

# Facebook Ads Webhook Setup Guide

> Register the StackOne webhook URL in Facebook Ads so its events reach StackOne and your subscribed webhooks.

## Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See [Getting Started](https://docs.stackone.com/connectors/facebookads.md#getting-started) on the Facebook Ads connector page.

## Connect the Meta app to StackOne

Meta sends ad, lead and app events to one callback URL per Meta object. Point the Ad Account, Page and Application objects of your Meta app at the account's **Native Webhook URL**.

**1. Copy the Native Webhook URL**

The **Native Webhook URL** is generated once an account has been linked.

<ul>
  <li>Open the linked account in StackOne.</li>
  <li>Copy the value from **Native Webhook URL**.</li>
</ul>

**2. Set the Ad Account callback URL**

Sign in to the [Meta App Dashboard](https://developers.facebook.com/apps/) and open your app.

<ul>
  <li>In **Use cases**, click **Customize** on **Create & manage ads with Marketing API**.</li>
  <li>Select **Webhooks**.</li>
  <li>Select **Ad Account**.</li>
  <li>**Callback URL**: The **Native Webhook URL** you copied</li>
  <li>**Verify token**: A value of your choice</li>
  <li>If **Include the names of the fields that have changed as well as their new values.** is shown, turn it on.</li>
  <li>Click **Verify and save**.</li>
</ul>

![Meta App Dashboard Webhooks page for the Ad Account object with the Callback URL, Verify token and Verify and save controls highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/events-ad-account-callback.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=4df54bc01b8a4d9bd35085b37d91fa7e)

**3. Subscribe the Ad Account fields**

In **Webhook fields**, turn on **Subscribe** for each field you want to receive. The **Available webhook events** section names the field behind each event.

![Ad Account webhook fields with the Subscribe toggles highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/events-ad-account-fields.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=44ac9781364be75724d141b75888cfd8)

**4. Subscribe the Page leadgen field**

New lead events come from the **Page** object.

<ul>
  <li>Select **Page**.</li>
  <li>**Callback URL**: The **Native Webhook URL** you copied</li>
  <li>**Verify token**: A value of your choice</li>
  <li>Click **Verify and save**.</li>
  <li>In **Webhook fields**, turn on **Subscribe** for **leadgen**.</li>
</ul>

![Page webhook fields with the leadgen field and its Subscribe toggle highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/events-page-leadgen.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=dbcbe14d8578276057bab69aef74557e)

**5. Subscribe the Application fields**

Ad rule, async job and ad account status events come from the **Application** object.

<ul>
  <li>Select **Application**.</li>
  <li>**Callback URL**: The **Native Webhook URL** you copied</li>
  <li>**Verify token**: A value of your choice</li>
  <li>Click **Verify and save**.</li>
  <li>In **Webhook fields**, turn on **Subscribe** for **ad\_account**, **ads\_rules\_engine** and **async\_requests**.</li>
</ul>

![Application webhook fields with the ad\_account, ads\_rules\_engine and async\_requests Subscribe toggles highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/events-application-fields.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=aa187f1d1c0bd139b63709cb60234c95)

**6. Publish the app**

Publishing makes the app Live. It doesn't need App Review.

<ul>
  <li>In the left navigation, click **Publish**.</li>
  <li>Click **Publish** at the bottom of the page.</li>
  <li>The left navigation shows **Published** once the app is live.</li>
</ul>

![Meta App Dashboard Publish page with the Publish item and its Published badge highlighted](https://mintcdn.com/stackone-60/V77zvbkFiATNRtZz/connectors/facebookads/images/events-publish.png?fit=max\&auto=format\&n=V77zvbkFiATNRtZz\&q=85\&s=43c68d0d04604ee961d90150b722b3ce)

**7. Add the ad account and Page to the linked account**

Edit the linked account in StackOne and fill **Page ID** with the Page whose events you want and, for OAuth 2.0 or System User Access Token accounts, **Ad Account ID** with the ad account. New lead events also need the `pages_manage_metadata` permission on the account's access token.

## Available webhook events

These are the events the connector handles. Only events selected in StackOne are delivered.

**1. Verification (required)**

Meta checks the callback URL each time it is saved.

<ul>
  <li>**Active Check** (`verification_request`) — Fired when Meta verifies the callback URL, each time it is saved</li>
</ul>

**2. Lead events**

Events from the **Page** object.

<ul>
  <li>**Lead Created** (`leadgen`) — Fired when someone submits a lead ads form on a subscribed Facebook Page</li>
</ul>

**3. Ad object events**

Events about campaigns, ad sets, ads and creatives in the ad account.

<ul>
  <li>**Ad Effective Status Changed** (`effective_status`) — Fired when the delivery status of a campaign, ad set or ad changes</li>
  <li>**Ad Object Processed** (`in_process_ad_objects`) — Fired when a campaign, ad set, ad or creative finishes processing</li>
  <li>**Ad Object Issue Detected** (`with_issues_ad_objects`) — Fired when a campaign, ad set or ad enters an issue state during publishing or delivery</li>
  <li>**Creative Fatigue Changed** (`creative_fatigue`) — Fired when an ad's creative fatigue level changes to LOW, MEDIUM or HIGH</li>
</ul>

**4. Ad account events**

Events about the ad account as a whole.

<ul>
  <li>**Ad Recommendation Created** (`ad_recommendations`) — Fired when Meta has a new performance recommendation for the ad account</li>
  <li>**Ad Account Subscription Triggered** (`subscriptions`) — Fired when a condition set up with the ad account subscriptions API matches, such as an object being created</li>
  <li>**Async Ad Creation Updated** (`ads_async_creation_request`) — Fired when an asynchronous ad creation request finishes</li>
  <li>**Product Set Issue Detected** (`product_set_issue`) — Fired when Meta detects an issue on a product set used by the ad account</li>
</ul>

**5. App events**

Events from the **Application** object.

<ul>
  <li>**Ad Rule Triggered** (`ads_rules_engine`) — Fired when an ad rule with the PING\_ENDPOINT execution type evaluates true</li>
  <li>**Ad Account Status Changed** (`ad_account`) — Fired when an ad account's status changes, for example when it is disabled or reactivated</li>
  <li>**Async Request Updated** (`async_requests`) — Fired when an asynchronous job completes or fails</li>
</ul>

## Delivery format

Details of how Meta delivers events to StackOne.

**1. Batched changes**

Each request holds an `entry` list, one item per affected ad account, Page or app, and each item holds a `changes` list. Meta may batch several changes of the same object type into one request.

## Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.


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