create_lead_form
Create a lead generation form on a Facebook Page to collect user information with customizable questions and privacy policy.
Instructions
Create a new lead generation form on a Facebook Page. Requires pages_manage_ads permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lead form name | |
| page_id | Yes | Facebook Page ID | |
| questions | Yes | JSON array of questions. Each: {key: string, type: 'CUSTOM'|'EMAIL'|'PHONE'|'FULL_NAME'|'CITY'|'STATE'|'COUNTRY'|'ZIP'|'JOB_TITLE'|'COMPANY_NAME', label?: string} | |
| thank_you_page | No | JSON object: {title: string, body: string, button_text?: string, button_type?: 'VIEW_WEBSITE'|'DOWNLOAD'} | |
| privacy_policy_url | Yes | URL to privacy policy | |
| follow_up_action_url | No | URL to redirect after submission |