This guide walks Salesforce Sales Cloud CRM users through integrating with Meta's Conversions API using the Salesforce Webhooks partner integration. By completing this setup, lead status changes in Salesforce automatically send conversion events to Meta, enabling the Conversion Leads optimization for your lead ads campaigns
Important: This guide replaces the Developer Implementation step of the CRM integration. You do not need to write code, generate access tokens, or build Conversions API payloads manually — Meta handles the transformation from Salesforce webhooks to Conversions API events.
Before you begin the Salesforce Webhooks setup, verify you have the following:
| Requirement | How to Complete |
|---|---|
Connect your CRM to download leads | Follow the guide to connect your CRM to Meta and ensure leads are downloading from Meta to Salesforce. |
Meta lead ID field in Salesforce | Confirm the 15–17 digit Meta lead ID ( |
Create a CRM dataset in Meta Events Manager | Follow the guide to create a CRM dataset in Events Manager and select Salesforce Webhooks as your partner integration in Step 3. |
Verify Events Manager admin access |
|
Verify Salesforce admin access |
|
The Lead setup involves creating a Salesforce outbound message, mapping fields, and building an automation flow.
Salesforce outbound messages send messages to a designated endpoint whenever an automation flow triggers them. In this step, you configure an outbound message that sends lead data to Meta's webhook endpoint.
| Salesforce Field | Maps to Conversions API Parameter | Required? | Description |
|---|---|---|---|
|
| Yes | The lead's current stage in your sales funnel. |
|
| Yes | When the lead status was created or last updated. |
|
| Recommended | The 15–17 digit |
|
| Recommended | Hashed automatically by Meta upon receipt. |
|
| Recommended | Hashed automatically by Meta upon receipt. |
| (used to link Leads and Opportunities) | If using Opportunities | Required only if you selected "Yes" to use Opportunities. |
Tip: Send as many customer information fields as possible (Meta lead ID, email, phone) to improve event matching accuracy. You must send at least one. See the Customer Information Parameters documentation for the full list.
After saving the Outbound Message, Meta's setup modal displays a field mapping interface. This step tells Meta how the Salesforce fields you selected correspond to standard Conversions API parameters. For the full list of Conversions API parameters and their descriptions, see the Payload Specification. Confirm the mapping and click Next.
This flow triggers the Outbound Message whenever a lead's status changes, ensuring Meta receives real-time updates as leads move through your funnel.
Only complete this section if you selected Yes to using the Salesforce Opportunity object in the integration setup. If you do not use Opportunities to manage leads, skip to Testing and Verification.
| Salesforce Field | Maps to Conversions API Parameter | Required? |
|---|---|---|
|
| Yes |
|
| Yes |
Follow the same procedure as Step 3 (Lead Automation Flow), with these differences:
After activating your flow(s), verify the integration is working. Note: after completing these steps, it can take up to 20 minutes for Meta to finalize the connection. Once finalized, you can verify your setup.
lead_event_source and event_source custom parameters. Events without these parameters will not be recognized for Conversion Leads optimization.| Symptom | Possible Cause | Resolution |
|---|---|---|
Outbound message shows as 'Failed' | Endpoint URL is incorrect, unreachable, or the token stored in the Endpoint URL is invalid. | Navigate to Dataset Settings in Events Manager; scroll down to Webhooks Settings. Verify the token is valid. If the token is invalid, re-copy the Endpoint URL. Check Salesforce network/firewall settings. |
No events in Events Manager | Flow is not activated, or entry conditions not met. | Verify the flow is active. Update a lead's status and check if the flow triggers. |
Low lead coverage in Events Manager | Not sending Meta Lead ID, or not sending the initial lead stage. | Include the Meta Lead ID field. Send all lead stages, including the initial "raw lead" event (the event that represents all leads generated on Meta and downloaded into your CRM.). |
Formula syntax check fails | Formula copied incorrectly | Re-copy the formula from the Meta Events Manager modal. Remove any extra whitespace or line breaks. |
After confirming your webhooks are delivering data to Meta:
For guidance on which conversion event to optimize for, see Choosing the right conversion event.