Send server-side events via Meta Conversions API

domain: developers.facebook.com/docs/marketing-api/conversions-api · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate or retrieve a Conversions API access token from Events Manager in Meta Business Suite; this is distinct from a standard Marketing API token.
  2. Construct each event object with event_name, event_time (Unix timestamp), and event_source_url; add user_data with as many hashed identifiers (em, ph, fn, ln, etc.) as available.
  3. Hash all PII fields with SHA-256 (lowercase, normalized) before including them in user_data — Meta does not accept plaintext PII.
  4. POST to https://graph.facebook.com/v{API_VERSION}/{PIXEL_ID}/events with the data array (up to 1,000 events per request), access_token, and optionally test_event_code during testing.
  5. Review the response's events_received count and any fbtrace_id for debugging; use the Test Events tool in Events Manager to validate payload structure.
  6. Implement deduplication by including event_id in both the browser pixel event and the server event so Meta can deduplicate overlapping signals.

Known gotchas

Related routes

Send server-side conversion events to Meta Conversions API (CAPI)
developers.facebook.com/docs/marketing-api · 6 steps · unrated
Send server-side conversion events to Pinterest via the Conversions API
developers.pinterest.com · 5 steps · unrated
Send server-side conversion events to Meta's Conversions API with Pixel deduplication
advertising · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans