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 → Get Lead Forms
AI-generatedOverview
This node integrates with the Facebook Graph API to provide enhanced access to various Facebook resources and operations within n8n workflows. Specifically, for the Lead Ads resource with the Get Lead Forms operation, it retrieves the lead forms associated with a specified Facebook Page. This is useful for marketers and businesses who want to automate the retrieval of their Facebook lead generation forms to process leads or analyze form data programmatically.
Practical examples include:
- Automatically fetching all lead forms from a Facebook Page to sync with a CRM.
- Monitoring lead form availability or changes as part of a marketing automation workflow.
- Triggering follow-up actions based on the lead forms retrieved.
Properties
| Name | Meaning |
|---|---|
| Page ID | The unique identifier of the Facebook Page from which to retrieve lead forms. |
Output
The node outputs an array of JSON objects representing the lead forms retrieved from the specified Facebook Page. Each item in the output corresponds to one lead form and contains detailed information about that form as returned by the Facebook API.
The json output field structure typically includes fields such as form ID, name, status, questions, and other metadata related to each lead form.
No binary data output is produced by this operation.
Dependencies
- Requires a valid Facebook API authentication token via configured credentials.
- Requires an active subscription and valid API key for the external "N8N Tools API" service used for validation.
- The node uses the Facebook Graph API v23.0 endpoints internally.
- Proper permissions/scopes must be granted to the Facebook API token to access lead ads and lead forms.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
- Permission Errors: Facebook API may return permission errors if the access token lacks required scopes for lead ads. Ensure the token has appropriate permissions.
- Page ID Issues: Providing an incorrect or unauthorized Page ID will result in errors or empty results. Confirm the Page ID is correct and accessible by the authenticated user.
- API Rate Limits: Facebook enforces rate limits; excessive requests may cause temporary failures. Implement retry logic or reduce request frequency.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if some fail, returning error details per failed item.
Links and References
- Facebook Lead Ads API Documentation
- Facebook Graph API Reference - Lead Forms
- n8n Documentation - Creating Custom Nodes
- N8N Tools API (Generic) (Replace with actual URL if available)