Salesforce to Meta Offline Conversions: Send Every Stage Through the Conversions API, Not Just the Win
By Rajesh Kumar, Founder, Attribi · · Updated

Salesforce to Meta offline conversions means sending a Salesforce Lead or Opportunity stage change to Meta's Conversions API as a server event: a Meta lead ID or hashed email and phone to identify the person, a Unix event_time under 7 days old, and a stage name Meta can optimize toward. Sending only the win discards most of the signal.
This is the setup, end to end: which of Meta's two integrations your leads belong to, what Meta needs and by when, which Salesforce fields feed it, how to fire it from a stage change, and where Attribi's managed route differs. Fixing a connection that already exists is the Salesforce to Meta troubleshooting guide. The platform rules this build sits on, match keys, deduplication and which stages to send, are in the Meta Conversions API for lead generation guide. Every Meta fact below was re-read on Meta's developer pages on 2026-10-12.
What is a Salesforce to Meta offline conversion, and which Meta integration receives it?
A Salesforce to Meta offline conversion is a server-side event, posted to Meta's Conversions API, that reports a stage a Salesforce Lead or Opportunity reached after the ad interaction, identified by the person's Meta lead ID, click ID or hashed contact details, so Meta can count it and optimize toward it. Meta receives it through one of two paths, and the right one is decided by where the lead came from, not by where the deal closed.
Leads from Meta Instant Forms use what Meta documents as the Conversions API for CRM integration. Each submission carries a 15 to 17 digit leadgen_id. You store it in Salesforce, and every later stage event sends it back as user_data.lead_id, unhashed, with action_source set to system_generated and two custom parameters, event_source: "crm" and lead_event_source naming your CRM. Events without those two parameters are not registered as Conversion Leads events. The event_name is free form: your own stage label, such as Sales Qualified Lead.
Leads from your website have no leadgen_id. They are ordinary Conversions API events: a Purchase or Lead with action_source describing where the conversion happened, matched on fbc (built from the fbclid on the ad click) and on hashed em and ph. Meta's customer information parameters page marks lead_id and fbc as not hashed and em and ph as hashing required.
The practical difference is match rate. Meta's own Salesforce guidance links low coverage to two causes: a missing Meta Lead ID, and not sending the initial raw-lead stage. A hashed email matches only if the buyer's Salesforce email is the one on their Meta account.
| Instant Form lead | Website lead | |
|---|---|---|
| Strongest identifier | user_data.lead_id (Meta's leadgen_id, not hashed) | user_data.fbc built from the fbclid, not hashed |
| Fallback identifiers | Hashed em, ph | Hashed em, ph |
action_source | system_generated | Where the conversion happened: website, phone_call, chat, email, physical_store or another of Meta's nine values |
custom_data markers | event_source: "crm" and lead_event_source required | Not used |
event_name | Your stage name, every stage including the raw lead | Standard Lead or Purchase |
| What Meta does with it | Trains the Conversion Leads performance goal toward your chosen stage | Counts and optimizes toward the standard event |
| Dataset | A CRM dataset, or a web dataset you convert | The Pixel dataset the ad set already uses |
What does Meta need from each event, and by when?
These are the limits a Salesforce job most often trips. All read on Meta's pages on 2026-10-12.
| Requirement | Meta's rule | Where it is stated |
|---|---|---|
event_time age | Unix seconds, GMT, at most 7 days before you send. One older event fails the entire request and no events are processed. | Server event parameters |
event_time versus lead creation | For CRM events, the timestamp must be after the lead generation time or the event may be discarded. | Payload specification |
| Backfill | Up to 7 days. Do not rewrite event_time to reach further back; the backfilled data may all be discarded. | Implementing the CRM integration |
| Batch size | Up to 1,000 events per request. If one event in a batch fails, the whole batch is discarded. | Same page |
| Upload cadence | At least once a day; real time preferred, hourly or daily batches acceptable | Same page |
| Deduplication | Same event_name and event_id within 48 hours counts once; a browser event arriving within about 5 minutes of the server event is favored | Server event parameters |
| Conversion Leads optimization | At least 200 leads per month, the stage you optimize toward reached within 28 days of lead generation at a 1 to 40 percent conversion rate, at least two stages sent including the raw lead, and a 2 to 4 week learning phase | Conversion Leads integration and the platform guide |
Invalid lead_id | Meta rejects the event | Payload specification |
Two of these shape the Salesforce side. The 7-day ceiling means a Closed Won stage reached in week one and uploaded in week three never counts, however correct the payload. The 28-day window means a deal that closes in month four cannot be the Conversion Leads target; an earlier stage, such as a qualification call, has to carry that job.
One retired route still appears in older guides. Meta's Graph API v17.0 changelog states that the Offline Conversions API no longer supports offline events from v17.0; v16.0 was the last version that did. In-store events now go through the Conversions API with action_source: "physical_store", per Meta's offline events page. A Salesforce win is not a store transaction, so that value is wrong for it.
Which Salesforce fields feed the event?
The object model behind this, Lead converting into Contact and Opportunity and the custom fields that do not travel across that conversion unless you map them, is covered in the Salesforce to Google Ads guide. The same mapping problem applies here, with the Meta Lead ID in the role the GCLID plays there.
Meta's own Salesforce webhooks guide is the clearest statement of which fields matter, because it is Meta saying what it will read:
| Salesforce field | Meta parameter | Status in Meta's guide |
|---|---|---|
Lead Status | event_name | Required |
Lead LastModifiedDate | event_time | Required |
| Custom field "Meta Lead ID" | user_data.lead_id | Recommended, highest matching priority |
Lead Email | user_data.em | Recommended |
Lead Phone | user_data.ph | Recommended |
ConvertedOpportunityId | Links Leads to Opportunities | Only if the sales process uses Opportunities |
Opportunity StageName | event_name | Required on the Opportunity flow |
Opportunity LastModifiedDate or a stage change timestamp | event_time | Required on the Opportunity flow |
For a direct build, four Salesforce details decide whether the event is honest. Salesforce pages read 2026-10-12.
Won is a property of the stage, not a label. OpportunityStage carries IsWon and IsClosed, which Salesforce's object reference describes as whether the stage value represents a won, or closed, opportunity. Query SELECT MasterLabel, IsWon, IsClosed, IsActive FROM OpportunityStage once and trigger on the stages where IsWon is true. A condition comparing StageName to the text "Closed Won" stops working the day an admin renames the stage, silently.
The person comes from OpportunityContactRole. An Opportunity has no direct Contact relationship. Salesforce's contact roles article lets you designate a primary contact; use that one for em and ph, and keep the Opportunity ID as the business reference. A five-person buying committee is one sale, not five.
CloseDate is a date, not a time. It has no hour, it is edited for forecasting, and it can sit in the future. The honest event_time is when the stage changed, which is why Meta's guide maps LastModifiedDate or a stage change timestamp rather than CloseDate.
Amount and CurrencyIsoCode travel together. CurrencyIsoCode exists only on multi-currency orgs; on a single-currency org the corporate currency applies and is not on the record. A missing Amount is not zero. Hold the event rather than sending a zero-value Purchase.
How do you trigger the send from Salesforce when a stage changes?
Meta's no-code route uses Salesforce automation you already have; a direct build replaces the last step with your own endpoint. The trigger logic is the same.
- Create the custom field. Add "Meta Lead ID" on Lead, fill it from the
leadgen_idyour lead-ads sync delivers, and map it through lead conversion onto Contact or Opportunity so the Opportunity flow can still send it. - Build a record-triggered flow on Lead, and a second on Opportunity if you sell through Opportunities. Trigger on a record being created or updated, after save. Salesforce's Trailhead module on flow callouts describes the choice that matters: run every time the record is updated and meets the condition requirements, or only when the record is updated to meet the condition requirements. Pick the second, or every unrelated edit resends the stage.
- Write the entry condition on the stage. For Lead,
Statuschanged. For Opportunity,StageNamechanged, with won-ness read fromIsWonrather than a literal. Every stage fires, including the first; Meta wants the raw lead event for all leads downloaded from Meta. - Call out asynchronously. Meta's guide uses an Outbound Message action on an asynchronous path, aimed at the endpoint URL Meta issues when you select Salesforce Webhooks as the partner on a CRM dataset; Meta builds the event and hashes the email and phone itself. A direct build points the same path at your own service, which hashes
emandphand posts to/{dataset_id}/events. - Record each change, not a snapshot. A lead that moved three times between batch runs produces three events. Queue the stage, the change time and the record ID in a table your job drains.
- Verify in Events Manager. Meta says events appear within about an hour and the webhook connection can take up to 20 minutes to finalize. Open one event and confirm
lead_event_sourceandevent_sourceare populated. For a direct build, send withtest_event_codefirst, check the Test Events tab, then remove it.
Meta's guide also names two permissions you need before step 4: a System Administrator profile in Salesforce, and full control on the ad account and business account in Events Manager.
What does a corrected Purchase payload look like?
Here is an illustrative raw-HTTP event body for one website-origin sale completed over the phone. It is for inspection and testing, not a production submission. The timestamp is 9 October 2026 at 14:00 UTC. Replace it with the true occurrence time of your authorized test event when testing; do not copy the sample date into live jobs.
The email digest is calculated from alex@example.com. The phone digest is calculated from the fictional US number 12025550123. Both are complete, 64-character SHA-256 values. There is no real customer information or credential in this example.
{
"data": [
{
"event_name": "Purchase",
"event_time": 1791554400,
"action_source": "phone_call",
"event_id": "demo-opportunity-001:won:v1",
"user_data": {
"em": [
"6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110"
],
"ph": [
"980239b79aee5c456445907b92af495ac97767f6d9ac081ad3a564344ae7fb9a"
]
},
"custom_data": {
"value": 18000.0,
"currency": "USD"
}
}
]
}
Synthetic example only. Keep credentials outside the payload and verify the destination before testing.
Three things are deliberate. action_source is phone_call because that is where this sale happened; Meta's server event parameters define system_generated as a conversion that happened automatically, such as a subscription renewal. The hashes are 64 hexadecimal characters, as a SHA-256 digest always is. And the event omits what it cannot honestly populate: no invented fbc, no browser URL, no lead_id.
The same sale for an Instant Form lead changes four lines: action_source becomes system_generated, user_data gains "lead_id": 1234567890123456 as an integer, custom_data gains "event_source": "crm" and "lead_event_source": "Salesforce", and event_name can stay Purchase or be your stage label. The hashed email and phone stay in as fallbacks.
The normalization behind em and ph, and why one stored hash cannot serve Google and Meta, is in the email and phone hashing guide.
Why send every funnel stage and not only Closed Won?
Because Meta optimizes toward the stage you tell it to, and it cannot optimize toward a stage it never sees. Meta's own example in the implementation guide is 100 leads producing 215 events: 100 raw leads, 70 marketing qualified, 30 sales opportunities, 15 converted. The win alone is 15 events, under a tenth of the signal, and in a four-month sales cycle those 15 arrive too late for the 28-day window.
The stage you pick for the Conversion Leads goal has to clear Meta's three tests: reached within 28 days of lead generation, by 1 to 40 percent of leads, on at least 200 leads a month. For most B2B teams that is a qualification stage. The win still goes, as a Purchase with value and currency, so reporting and value-based optimization see revenue. Meta's getting-started page adds one rule: give CRM events new names rather than reusing names already on the dataset.
Attribi's mapping is fixed rather than chosen per account: form fills and qualified outcomes go as Lead, with content_category: "qualified_lead" on the qualified ones, and closed-won goes as Purchase with value and currency. There is no stage-name picker on the Meta side.
How do you keep retries from becoming repeat sales?
Derive the event identity from the business outcome. The sample uses demo-opportunity-001:won:v1. A retry of that outcome keeps the same event_id, event_name, value and event_time; a second Opportunity for the same person gets its own identity. Meta's deduplication pairs event_name with event_id inside a 48-hour window, which covers a retried job but not a replay next month, so keep your own delivery ledger: destination, record ID, outcome, event identity, attempts, last result.

Separate retryable failures from invalid records. A timeout is retried with backoff; a missing currency needs a data fix; an expired token needs the connection owner. Decide corrections in advance: resending an event_id with a new amount does not edit the earlier revenue, and a fresh event_id used as an improvised edit creates a second purchase.
How do you verify delivery, matching and attribution separately?
A 200 with events_received: 1 proves delivery to that dataset and nothing more. Keep three checks.

Delivery. The response carries events_received, messages and fbtrace_id. Compare the event in Events Manager against the Salesforce record: name, time, value, currency, dataset. An event accepted by the wrong dataset is a failure that returned 200.
Matching. A well-formed hash of the wrong email identifies nobody, and an invalid lead_id is rejected outright. For Instant Form leads, Meta's platform guide asks for at least 60 percent lead coverage, the share of downloaded leads that later get a matching CRM event, so coverage is the number to watch, not the match quality score alone.
Attribution. A matched person may have no eligible ad interaction inside the ad set's attribution setting, or the report may be scoped to a different period or currency. A delivered, matched Salesforce win with no campaign credit is a legitimate result. Why Meta's attributed count will never equal Google's for the same buyers is in how ad platforms count conversions differently.
Run a small acceptance set before rollout: a valid won Opportunity, one with no usable identity, one with no amount, one retried, one second win for the same person, one reopened deal. Write the expected handling down first, and alert on a day with zero events, because an empty Events Manager tab looks exactly like a quiet week.
How does the Attribi route differ from a direct build?
Attribi's Salesforce revenue integration reads Opportunities modified since its last run once a day, through a SOQL query on StageName and LastModifiedDate. Won detection uses the org's OpportunityStage.IsWon flags, with a manual override list; the person comes from OpportunityContactRole, preferring the primary contact; the amount must be greater than zero, and currency comes from CurrencyIsoCode or, on single-currency orgs, from the org, never a guessed USD. The outcome goes to Meta through the Conversions API connection.
Against the direct build above:
event_timeis the time of the daily read, not the Salesforce stage change. That keeps every event inside Meta's 7-day ceiling by construction, at the cost of up to a day of lag.action_sourceiswebsitefor a Salesforce win, andsystem_generatedonly for a lead that originated in a Meta Instant Form, where the storedleadgen_idgoes out aslead_idwithevent_source: "crm"andlead_event_source: "Attribi". Instant Form ingestion is a separately enabled connection.- Matching is hashed email and phone only. No click ID is recovered from Salesforce; an
fbclidis used only when Attribi's own tracker captured it on the website. Store phones in international format with the country code: Attribi hashes the digits as stored, and Meta's rule strips leading zeros and expects the country code. - First qualified and first won per Contact. A renewal or expansion for the same Contact is not uploaded as another conversion today.
- Funnel graduation does not fire for a Meta-only advertiser. Its maturity count reads Google Ads clicks, so an account with no Google traffic never graduates.
- Connecting Salesforce needs an admin-side install step first. Attribi's connected app has to be installed into your org before the OAuth connection succeeds; the Connections page alone is not enough today.
CRM revenue sources start on Growth, 99 dollars per workspace per month; uploads to one ad platform start on Starter at 49 dollars. Every new workspace gets 30 days on Pro with no card, enough to run the acceptance set above against real Opportunities. Start the trial, see current plans, or read how upload outcomes are recorded per platform and stage.
Frequently asked questions
Do I need the Meta lead ID to send Salesforce conversions to Meta? No, but the match rate depends on it. Meta's payload specification lists lead_id as the highest-priority identifier, and its Salesforce guide links low coverage to a missing Meta Lead ID. Without it, a website-origin lead can still match on fbc or on hashed email and phone.
What is the event_time limit for Meta Conversions API events from a CRM? Up to 7 days before you send the event, in Unix seconds, GMT. One older event fails the entire request. For CRM stage events the time must also be after the lead was generated, or Meta may discard the event. Verified on Meta's server event parameters page, 2026-10-12.
Which action_source should a Salesforce closed-won event use? The source that describes where the conversion happened: phone_call for a phone close, email, chat, website or another of Meta's nine values. Meta reserves system_generated for automatic conversions such as subscription renewals, and requires it for Conversion Leads events that carry a lead_id.
How many funnel stages does Meta want from Salesforce? At least two, including the raw lead, and three or more is recommended. The stage you optimize toward must be reached within 28 days of lead generation by 1 to 40 percent of leads, and Meta asks for at least 200 leads a month before using the Conversion Leads goal.
Does Attribi send the Salesforce close date as Meta's event_time? No. Attribi reads changed Opportunities once a day and stamps the event with the time of that read, which keeps it inside Meta's 7-day window. Salesforce's CloseDate is a date without a time, so a direct build should use the stage change timestamp instead.
The takeaway
Meta's Conversions API treats a Salesforce outcome as one of two things: a stage event for a lead it generated, keyed on lead_id, or a standard event for a website lead, keyed on fbc or hashed contact details. Decide which you have, send every stage inside 7 days with the time it actually changed, and keep the win as a Purchase with its real amount. Then prove delivery, matching and attribution one layer at a time. If you would rather not own the flow, the trigger and the ledger, start 30 days on Pro and run the acceptance set against your own Opportunities.
Send closed deals to Meta as Conversions API events.
Attribi matches each CRM outcome back to the lead it recorded and sends it through the Conversions API with hashed identifiers.
No credit card. Free up to 500 visitors a month. New workspaces start with 30 days on Pro.