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 → Create Lead Form
AI-generatedOverview
The "Create Lead Form" operation within the "Lead Ads" resource of this Facebook Enhanced node allows users to create a new lead generation form on a specified Facebook Page. This is useful for marketers and businesses who want to collect leads directly from their Facebook pages by creating customized forms that potential customers can fill out.
Typical use cases include:
- Automating the creation of lead capture forms for Facebook advertising campaigns.
- Integrating lead form creation into marketing workflows to streamline lead generation.
- Quickly setting up new lead forms with default or custom privacy URLs.
For example, a user could automate the creation of a lead form titled "New Lead Form" linked to their Facebook Page, which then collects contact information from interested users.
Properties
| Name | Meaning |
|---|---|
| Page ID | The unique identifier of the Facebook Page where the lead form will be created. |
Note: For the "Create Lead Form" operation, the form name is fixed as "New Lead Form" and the privacy policy URL is set to "https://example.com/privacy" in the current implementation.
Output
The output JSON contains the response from the Facebook API after attempting to create the lead form. This typically includes details about the newly created lead form such as its ID, name, status, and other metadata returned by Facebook.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the Facebook Graph API via OAuth2 or API key credentials configured in n8n.
- Requires a valid subscription and API key for the external "N8N Tools API" service used for validation before making Facebook API calls.
- The node uses the
FacebookApihelper class internally to interact with Facebook endpoints.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error related to invalid subscription or API key, verify that your N8N Tools API credentials are correct and have the necessary permissions.
- Permission Errors from Facebook: Ensure the Facebook Page ID is correct and that the connected Facebook account has permission to create lead forms on that page.
- Network or API Errors: Check network connectivity and Facebook API status if requests fail unexpectedly.
- Fixed Form Name and Privacy URL: Currently, the form name and privacy URL are hardcoded; to customize these, the node code would need modification or enhancement.