Skip to main content
Salesforce → MetaIntegration guide

Connecting Salesforce to Meta Conversions API

Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. Meta's pixel loses a large share of conversions to Safari, ad blockers and iOS, and the Conversions API exists because of it. The join between them succeeds or fails on one thing: whether the fbc and fbp values reaches the Salesforce Lead or Opportunity before the conversion happens, because Meta can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Salesforce to Meta: send lead stages as they happen

Meta rejects events older than seven days, so send each Salesforce stage when it changes: Lead on creation with fbc, fbp and event_id, then later stages matched on hashed email and phone. For Meta lead ads, store Meta's lead ID through conversion for CRM matching. Optimize on a qualified-lead stage, and never send rep-created or imported Leads.

Meta will not accept a website event dated more than seven days back, and its default click window is seven days, so a Closed Won Opportunity six months after a form fill cannot be credited to the original ad by backdating. Send each stage at the moment it changes instead: Lead when the Salesforce Lead is created, with the fbc, fbp and event_id from the form submission; then later stages as events timestamped when the Flow or trigger fires, matched on the hashed email and phone from the Lead and Contact.

If leads come from Meta lead ads synced into Salesforce, store Meta's lead ID on the Lead and carry it through conversion to the Opportunity. Meta's CRM integration route matches stage events on that ID, which is far more reliable than email for business leads; check in Events Manager whether your dataset is set up for CRM events and which stage names it expects.

Choose the optimization event by volume, not by value. Most Salesforce pipelines produce too few Closed Won deals per week for Meta to learn from, so a qualified-lead or opportunity-created stage is usually the realistic target, with Closed Won sent for reporting. Rep-created and imported Leads must not be sent at all; they match real people on hashed email and Meta will credit your ads with your sales team's prospecting.

Salesforce → Meta · what breaks

Why this join usually fails — Salesforce → Meta

  1. 01

    The fbc and fbp values never reaches Salesforce

    Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.

  2. 02

    The identifier is lost at lead conversion

    This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.

  3. 03

    Double counting from broken deduplication

    Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.

  4. 04

    Nothing reconciles afterwards

    Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.

Salesforce → Meta · the fix

What working looks like — Salesforce → Meta

  • The fbc and fbp values on every opportunity

  • Conversions arriving in Meta

    Events appear in Events Manager with an Event Match Quality score, deduplicated against the pixel, and become usable for optimization and attribution.

  • Reconciled against the source

Salesforce → Meta · architecture

How Salesforce and Meta actually connect

  1. 1

    Salesforce holds the truth

    The opportunity carries the amount, stage and close date. Because Leads convert into Contacts, Accounts and Opportunities, the identifier must be mapped through the conversion or it is dropped exactly at the moment the record becomes valuable.

  2. 2

    Meta Conversions API needs a click to match

    Meta matches server events to people using whatever identifiers you send, hashed with SHA-256 where required. There is no single mandatory key, which is why quality varies so much between implementations — a poorly matched event is accepted, reported, and worth much less than it appears.

  3. 3

    The identifier is the bridge

    The fbc and fbp values, captured at the visit and carried into the Salesforce Lead or Opportunity.

  4. 4

    The event source decides reliability

    Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.

  5. 5

    Deduplication at the destination

    Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.

Salesforce → Meta · normal or broken

Working vs. broken, side by side — Salesforce → Meta

Normal, not a fault

  • The fbc and fbp values present on the opportunity

  • Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change

  • Deduplicated correctly

    Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.

  • Reconciles with the source

Actually broken

  • The fbc and fbp values missing on most records

    Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.

  • Sent from the browser

    This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.

  • Counted twice, or not at all

    Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.

  • Nobody has reconciled it

Salesforce → Meta · diagnose

Diagnostic order — Salesforce → Meta

  1. 01

    Count opportunitys carrying the fbc and fbp values

  2. 02

    Follow one real conversion end to end

  3. 03

    Convert a test Lead and inspect the resulting Opportunity

    If the identifier is not on the Opportunity, the field mapping is missing. This takes five minutes and rules out the most likely cause outright.

  4. 04

    Read Event Match Quality and the deduplication indicator

    In Events Manager, open the event and check both. A low match quality means weak identifiers; a missing deduplication indicator means your event_id pairing is broken.

  5. 05

    Read the match rate, not the success message

    Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.

Salesforce → Meta · prove

How it gets proven — Salesforce → Meta

Source of truth

A Salesforce report of Closed Won opportunities for the same window, by close date.

  • The fbc and fbp values confirmed present on a live opportunity.
  • Deduplication confirmed in Events Manager on a real purchase, with the browser and server events visibly paired rather than counted twice.
  • A test lead converted end to end with the identifier confirmed present on the resulting opportunity.

Salesforce → Meta · free audit

What we check in the free audit

  • Count opportunitys carrying the fbc and fbp values
  • Follow one real conversion end to end
  • Convert a test Lead and inspect the resulting Opportunity
  • Read Event Match Quality and the deduplication indicator
  • Read the match rate, not the success message

Checked against

A Salesforce report of Closed Won opportunities for the same window, by close date.

Get my free conversion tracking audit

Free30 minutesNo obligation

Salesforce → Meta · when not to buy

When you don't need this — Salesforce → Meta

  • Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the fbc and fbp values.
  • If your Salesforce instance is heavily customized and administered by another team, scope their availability before commissioning this — the build is usually blocked on admin access rather than on the tracking work.
  • If you are not running Meta ads at meaningful spend, the Conversions API is effort without payoff. It earns its cost when the optimization signal is worth improving.

Salesforce → Meta · what we deliver

What gets built — Salesforce → Meta

  • Identifier capture into Salesforce

    Custom field on Lead, matching custom field on Contact and Opportunity, and the field mapping configured so conversion carries it across. Verify by converting a test lead and reading the resulting opportunity.

  • Event source: a Salesforce flow, Apex trigger or scheduled export on StageName change

    Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.

  • Dispatch to Meta

    Server-side events to the Conversions API with the event_id matched to the pixel, action_source set correctly, and customer data hashed before it leaves your infrastructure.

  • Reversals where they exist

    An opportunity moved back out of Closed Won can be retracted, and enterprise pipelines do this often enough to be worth wiring.

Written guarantee

95%+ tracking accuracy

Measured against A Salesforce report of Closed Won opportunities for the same window, by close date.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Salesforce → Meta questions, answered

Yes, as an event sent when the stage changes, matched on hashed contact data or a Meta lead ID. It will only be attributed if it falls inside your attribution window, which long sales cycles usually exceed.

Free · 30 min

Get Salesforce and Meta joined properly

Free30 minutesNo obligation