Skip to main content

Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See 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.

  • Open the linked account in StackOne.
  • Copy the value from Native Webhook URL.
2

Set the Ad Account callback URL

Sign in to the Meta App Dashboard and open your app.

  • In Use cases, click Customize on Create & manage ads with Marketing API.
  • Select Webhooks.
  • Select Ad Account.
  • Callback URL: The Native Webhook URL you copied
  • Verify token: A value of your choice
  • If Include the names of the fields that have changed as well as their new values. is shown, turn it on.
  • Click Verify and save.
Meta App Dashboard Webhooks page for the Ad Account object with the Callback URL, Verify token and Verify and save controls highlighted
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
4

Subscribe the Page leadgen field

New lead events come from the Page object.

  • Select Page.
  • Callback URL: The Native Webhook URL you copied
  • Verify token: A value of your choice
  • Click Verify and save.
  • In Webhook fields, turn on Subscribe for leadgen.
Page webhook fields with the leadgen field and its Subscribe toggle highlighted
5

Subscribe the Application fields

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

  • Select Application.
  • Callback URL: The Native Webhook URL you copied
  • Verify token: A value of your choice
  • Click Verify and save.
  • In Webhook fields, turn on Subscribe for ad_account, ads_rules_engine and async_requests.
Application webhook fields with the ad_account, ads_rules_engine and async_requests Subscribe toggles highlighted
6

Publish the app

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

  • In the left navigation, click Publish.
  • Click Publish at the bottom of the page.
  • The left navigation shows Published once the app is live.
Meta App Dashboard Publish page with the Publish item and its Published badge highlighted
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.

  • Active Check (verification_request) — Fired when Meta verifies the callback URL, each time it is saved
2

Lead events

Events from the Page object.

  • Lead Created (leadgen) — Fired when someone submits a lead ads form on a subscribed Facebook Page
3

Ad object events

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

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

Ad account events

Events about the ad account as a whole.

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

App events

Events from the Application object.

  • Ad Rule Triggered (ads_rules_engine) — Fired when an ad rule with the PING_ENDPOINT execution type evaluates true
  • Ad Account Status Changed (ad_account) — Fired when an ad account’s status changes, for example when it is disabled or reactivated
  • Async Request Updated (async_requests) — Fired when an asynchronous job completes or fails

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.