Facebook Leads form Trigger not sending Campaign details

Describe the problem/error/question

When I download the meta lead form .csv from facebook I get the Campaign details such as the campaign ID but when I extract the same form submission data using the facebook lead ad trigger I don’t get the campaign details

Trigger Response:

{
“id”: “9999999999999999”,
“data”: {
“what_type_of_business_do_you_operate?”: “mock_business_type”,
“what_is_your_primary_purpose_for_applying_for_the_card?”: “mock_purpose”,
“first_name”: “John”,
“email”: “``[email protected]``”,
“phone_number”: “+911234567890”,
“city”: “MockCity”,
“company_name”: “MockCompany Pvt Ltd”
},
“form”: {
“id”: “111111111111111”,
“name”: “Mock Form Name”,
“locale”: “en_US”,
“status”: “ACTIVE”
},
“ad”: {
“id”: “222222222222222”,
“name”: “Mock Ad Name”
},
“adset”: {
“id”: “333333333333333”,
“name”: “Mock Adset Name”
},
“page”: {
“name”: “MockPage”,
“id”: “444444444444444”
},
“created_time”: “2026-01-01T00:00:00+0000”
}

Please share your workflow


Information on your n8n setup

  • n8n version: 2.10.2
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: GCP Cloud Run

Hi @Punosie
The Facebook Lead Ads trigger doesn’t include campaign_id in the webhook (just ad/adset). Use adset.id and GET /{{adset.id}}?fields=campaign{id,name} on Graph API. Works great! :blush:

1 Like

how do I generate the app token for the Graph API creds?

I tried the following request:

The token I get in response gives this error in the facebook Graph API node:

  1. Once the token part is fixed, what should I add here in the fields ?
  2. Also is the token permanent ? and if not how can I get a permanent one

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.