Actions72
- Pages Actions
- Posts Actions
- Groups Actions
- Events Actions
- Insights Actions
- Marketing/Ads Actions
- Videos Actions
- Messaging Actions
- Shop/Catalog Actions
- Lead Ads Actions
- Webhooks Actions
Lead Ads → Subscribe to Webhooks
AI-generatedOverview
The node integrates with the Facebook Graph API to perform various operations across multiple Facebook resources. Specifically, for the Lead Ads resource and the Subscribe to Webhooks operation, it allows users to subscribe a Facebook Page to lead ads webhooks. This enables real-time notifications when new leads are generated from Facebook Lead Ads forms associated with that page.
This functionality is beneficial for automating lead management workflows, such as instantly capturing lead data into CRM systems, triggering follow-up actions, or syncing leads with marketing automation platforms.
Example use case:
A marketing team wants to automatically receive lead information from their Facebook Lead Ads campaigns in their internal system without manual export. By subscribing to lead ad webhooks via this node, they can trigger workflows whenever a new lead is submitted.
Properties
| Name | Meaning |
|---|---|
| Page ID | The Facebook Page ID for which to subscribe to lead ads webhooks. |
| Callback URL | The URL where Facebook will send webhook notifications (the endpoint to receive events). |
| Verify Token | A verification token used by Facebook to validate the webhook subscription request. |
Output
The node outputs JSON data representing the response from the Facebook API after attempting to subscribe the specified page to lead ads webhooks. This typically includes confirmation details of the subscription or error messages if the subscription failed.
The output structure is an array of items, each containing a json field with the API response relevant to the subscription action.
No binary data output is involved in this operation.
Dependencies
- Requires a valid Facebook API authentication credential (e.g., OAuth2 token or API key) configured in n8n.
- Requires access to the Facebook Page identified by the provided Page ID with permissions to manage lead ads webhooks.
- Requires a publicly accessible callback URL to receive webhook events from Facebook.
- Uses an external API validation service ("N8N Tools API") to verify subscription and API key validity before executing the main logic.
Troubleshooting
- Invalid Credentials Error: If the node throws an error about invalid subscription or API key, verify that the API key credential is correct and active.
- Permission Denied: Ensure the Facebook Page ID is correct and the authenticated user has sufficient permissions to manage lead ads webhooks on that page.
- Callback URL Issues: The callback URL must be reachable by Facebook servers and respond correctly to verification requests; otherwise, subscription will fail.
- Webhook Verification Token Mismatch: The verify token must match the one expected by your webhook endpoint to pass Facebook's verification challenge.
- Network Errors: Check network connectivity and firewall settings to ensure outgoing requests to Facebook and the N8N Tools API succeed.