meta_ads_lead_forms_create
Creates a Facebook lead form for a Page. Define ordered questions (standard or custom), set privacy policy URL, and optionally add a follow-up URL. Returns the new form ID.
Instructions
Creates a new lead form on a Facebook Page. Returns the new form_id. Mutating, reversible via rollback_apply (rollback archives the form rather than deleting submitted leads). Questions is an ordered list of standard Meta types (FULL_NAME, EMAIL, PHONE_NUMBER, COMPANY_NAME, JOB_TITLE, CITY, STATE, ZIP_CODE, COUNTRY, DATE_OF_BIRTH) or CUSTOM (requires key, label, and options for dropdowns). Meta requires a privacy_policy_url by policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Meta Ads account ID in the format 'act_XXXXXXXXXX' (e.g. 'act_1234567890'). Optional — falls back to META_ADS_ACCOUNT_ID from the configured credentials. The leading 'act_' prefix is required. | |
| page_id | Yes | Facebook Page ID that will own the form. | |
| name | Yes | Form name shown in Ads Manager and Page Lead Center. | |
| questions | Yes | Ordered question list. Standard-type questions only need `type`; CUSTOM questions require `key`, `label`, and (for dropdowns) `options`. | |
| privacy_policy_url | Yes | HTTPS URL of the advertiser's privacy policy. Required by Meta policy — forms without one are rejected. | |
| follow_up_action_url | No | Optional URL the user is redirected to after submission (e.g. thank-you page). Omit to show Meta's default confirmation only. |