leadgen_forms edge from the following paths: privacy_policy if the URL is invalid or the link_text exceeds 70 characters.
If you upload an image by specifying cover_photo parameter, the access_token accompanying the request must include the pages_manage_posts permission.
| Parameter | Beschreibung |
|---|---|
allow_organic_lead_retrievalboolean | Standardwert: truePreviously, this flag controlled whether any leads submitted in a non-Ad context were retrievable. Now this flag will not be considered and it will be deprecated entirely. To control visibility of Lead Forms in a non-Ad context you should use 'block_display_for_non_targeted_viewer' |
block_display_for_non_targeted_viewerboolean | Whether to make the organic post invisible to viewers in non-Ad context |
context_cardObject | Optional context card shown as the intro page Supports Emoji |
cover_photofile | Custom cover photo for context card |
custom_disclaimerObject | Customized disclaimer including title, body content with inline links, and consent checkboxes Supports Emoji |
follow_up_action_urlURI | The final destination URL that user will go to when clicking view website button |
is_for_canvasboolean | Standardwert: falseFlag to indicate that the form is going to be used under a canvas |
is_optimized_for_qualityboolean | Standardwert: falseFlag to indicate whether the form will be optimized for quality |
is_phone_sms_verify_enabledboolean | Standardwert: falseWhether the form requires phone sms verification when user submits |
localeenum {AR_AR, CS_CZ, DA_DK, DE_DE, EL_GR, EN_GB, EN_US, ES_ES, ES_LA, FI_FI, FR_FR, HE_IL, HI_IN, HU_HU, ID_ID, IT_IT, JA_JP, KO_KR, NB_NO, NL_NL, PL_PL, PT_BR, PT_PT, RO_RO, RU_RU, SV_SE, TH_TH, TR_TR, VI_VN, ZH_CN, ZH_HK, ZH_TW} | The locale of the form. Pre-defined questions renders in this locale |
namestring | The name that will help identity the form erforderlich |
privacy_policyObject | The url and link_text of the privacy policy of advertiser. link_text is limited to a maximum of 70 characters. Supports Emoji |
question_page_custom_headlinestring | The custom headline for the question page within the form |
questionslist<Object> | An array of questions of the form erforderlich |
should_enforce_work_emailboolean | Whether to enable work email enforcement. |
thank_you_pageObject | Optional customized thank you page displayed post submission Supports Emoji |
tracking_parametersJSON object {string : string} | Map for additional tracking parameters to include with the form's field data |
upload_gated_filefile | When using Meta's marketing API to create a lead ad, you can use this field to create a gated content thank you page. This field would be the file that you'd like to use as the gated file, and the thank you page button type should be VIEW_ON_FACEBOOK |
id in the return type.id: numeric string, | Fehler | Beschreibung |
|---|---|
| 100 | Invalid parameter |
| 192 | Invalid phone number |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 80005 | There have been too many leadgen api calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
| 200 | Permissions error |
| 105 | The number of parameters exceeded the maximum for this operation |
| 190 | Invalid OAuth 2.0 Access Token |