Meta ads
Meta CAPI for affiliates: postbacks, click IDs, events
Trace the affiliate callback to a stored click, distinguish tracker IDs from Meta matching fields, and understand Tracked’s partial Meta delivery boundary.
Meta Conversions API (CAPI) sends event data from a server to a Meta dataset. For an affiliate buyer, that can connect an approved sale or lead to the Meta campaign that produced the click.
“Facebook CAPI” is an older search phrase for the same Meta Conversions API. Use Meta’s current product name when you configure the connection.
The important distinction is where each request goes. An affiliate network postback sends a verified conversion to your tracker. CAPI sends a provider-specific event from your server to Meta. You need both hops when the tracker is the system that receives the conversion first.
Planning the whole campaign? Start with Facebook ads for affiliate marketing. This guide covers the separate Meta event-delivery layer. If you control the store checkout, use the ecommerce ad-tracking guide to identify the order evidence before configuring delivery.
Facebook postback URL versus Meta Conversions API
If you searched for a “Facebook postback URL,” identify the direction first. An affiliate network can call a tracker URL such as Tracked's /postback after a sale. Meta receives server events through the Conversions API for a configured dataset. Pasting the Tracked callback URL into a Meta event field does not send that event to Meta.
Trace the tracker conversion first: Tracked offer click → click ID saved by the affiliate network → confirmed sale or lead → callback returning that ID → conversion attached to the stored click in Tracked.
Meta delivery is a separate boundary. The recorded conversion needs a mapped Meta event, permitted matching data, and a configured dataset before it can become a CAPI request. Tracked's supplied-event and queue/delivery layers are partial; the automatic affiliate-postback-to-Meta workflow is not complete or production-verified.
| Identifier | What it establishes |
|---|---|
Tracked click_id returned by the network | Which stored tracker click receives the conversion |
Meta fbc, fbp, and permitted customer-data fields | Evidence Meta can use to match the supplied event; a tracker click ID does not replace these fields |
Shared event_id and event name | The same conversion across Pixel and CAPI for deduplication; not proof of campaign attribution |
Check the conversion in Tracked, then inspect Meta delivery and provider diagnostics separately. Dataset setup or a successful test event does not prove Meta matched or attributed the sale.
What an affiliate CAPI flow needs
The flow starts with a Meta ad click and ends with an event that Meta can process.
- Capture the click context on the landing-page visit.
- Carry the campaign’s click reference into the offer or affiliate network.
- Receive the approved conversion through the network’s server callback.
- Build a Meta event with the right event name, time, action source, and data.
- Send the event to the dataset through the Conversions API.
- Check the provider response and Events Manager diagnostics.
Meta’s Conversions API documentation describes server, website-platform, and CRM connections that send events to Meta. It is not a generic postback URL and does not use Google’s click-conversion format.
For affiliate campaigns, the inbound callback commonly carries a click reference, payout, currency, and timestamp. Tracked’s dispatcher accepts click_id, payout, currency, timestamp, and optional conversion_type (with type as an alias). That endpoint is not an outbound Meta API.
In Tracked, the untyped callback records the primary conversion and its payout. An explicitly typed callback is a secondary funnel signal and records zero payout, even if the sender includes payout. Choosing Purchase as the campaign’s Meta event does not mean adding that word as the Tracked callback type.
Build a useful server event
Start with the business event that the network actually confirmed. A lead, approved sale, refund, and rejected lead should not all become Purchase just because Meta has a standard event with that name.
A website event needs the right event and customer-data fields:
event_name, such asLeadorPurchase;event_timeas a Unix timestamp in seconds;action_source: "website";event_source_urlfor the page where the event occurred;user_data, including the browser’sclient_user_agentand only permitted matching fields;custom_datafor value, currency, order ID, or other event context.
Meta’s current parameter reference lists action_source, event_source_url, and client_user_agent as required for website events. A real browser user agent belongs in user_data; do not invent it when a network callback lacks that evidence.
Use the conversion timestamp from the verified source. Do not substitute the time when your tracker happened to receive a retry.
If you send email, phone, or other customer information, follow Meta’s customer-information parameter guidance. Normalize the values and SHA-256 hash fields such as email and phone where required. Do not hash fbc, fbp, IP address, or user agent when supplying those Meta fields. Send only permitted data, and keep raw personal data out of URLs and callback templates.
Browser identifiers have a different role. Reuse real _fbc and _fbp cookie values as fbc and fbp when available and permitted. Meta’s click-ID guidance also allows correctly formatted fbc from a real, observed fbclid when _fbc is unavailable. That requires the actual click value and its first-observed time—not a made-up identifier or UTM label. Preserve fbclid case exactly.
Tracked's implemented click-context layer keeps valid browser identifiers from the offer-click handoff when measurement permits. Without _fbc, it builds fbc from the observed fbclid and its first-seen time. This partial layer does not establish completed production delivery, and it does not invent missing browser evidence.
Deduplicate Pixel and server events
If the same conversion reaches Meta through both the browser Pixel and CAPI, Meta’s recommended approach is a shared stable event identifier and event name. The browser uses eventID; the server payload uses event_id. Meta’s deduplication guidance explains this approach and the limits of alternative matching methods.
Generate one ID when the conversion is created and keep it unchanged across retries. An affiliate order ID can be a good source when it is stable and unique. A random ID generated separately for the Pixel and CAPI request will not deduplicate those two events.
Deduplication is not the same as retry protection. Your tracker still needs an idempotent rule for repeated affiliate callbacks, while Meta needs matching identifiers for overlapping browser and server events.
For duplicate purchases, use the Pixel and CAPI deduplication troubleshooting guide to compare firing points, event IDs, retries, and Events Manager diagnostics.
Where Tracked is today
Status: Meta coverage is partial. Tracked has a supplied-event send path and implemented queue/delivery source. These layers do not establish a complete, live automatic affiliate-postback-to-Meta workflow. Production activation and verification remain pending; universal CAPI is still in development.
The implemented queue expects an event mapping, a resolved Meta account and dataset, consent eligibility, and usable click context. A recorded callback alone does not establish those inputs. Map a confirmed business event to Purchase, Lead, or the appropriate custom name. Additional typed network signals need their own event mappings.
Delivery still depends on usable evidence and permission. An explicit ad-user-data consent denial prevents delivery. Required consent must be granted. An ambiguous account is not used. Missing event mapping, browser user agent, or landing URL produces a skip rather than invented data.
The implemented callback sanitization layer normalizes and SHA-256 hashes supported customer fields and removes raw identifying values before storage. Already-hashed values pass through. This is a data-handling boundary, not proof of identity collection or completed Meta delivery. Only supply permitted data through an approved integration; do not place raw customer data in callback URLs.
For event_id, Tracked uses the network’s order or transaction ID when present. Otherwise it uses the Tracked conversion ID. Pixel deduplication requires your browser event to use that same ID and event name. Tracked cannot make an unrelated Pixel ID match automatically.
The implemented sender processes the scheduled queue and Send now requests; production activation remains pending. Transient failures retry with backoff, up to six attempts. Expired events outside Meta’s seven-day window are not sent. Token failures require reconnection. The account delivery log shows status, event ID, available match keys, errors, and Meta’s trace ID without exposing customer values.
A sent status means Meta accepted the event count. It does not guarantee matching, attribution, or ad-learning results. Test sends require the account’s saved test event code. They verify the test-event path, not production attribution.
A practical setup and check sequence
- Connect the right dataset. Confirm that the Meta account and dataset belong to the ad account running the campaign.
- Map the campaign event. Choose
Lead,Purchase, or a custom event for the confirmed conversion. Map additional typed signals separately. - Preserve the click context. Check the final offer request and the network record, not only the first tracking URL.
- Create one conversion ID. Reuse it for retries and for Pixel/CAPI deduplication when both channels send the event.
- Validate data handling. Establish where permitted matching fields come from, how required hashing happens, and which consent decision applies.
- Run a test event. Use Meta’s Test Events tool or a provider-generated test code. A test response proves that the request reached the API; it does not prove campaign attribution.
- Check the whole chain. Follow one genuine Meta click and approved conversion into the delivery log. Check Meta’s diagnostics and reporting separately.
For the tracker-side callback mechanics, see the postback URL conversion tracking guide. Before buying traffic, use the Facebook landing-page checklist to inspect the destination and click handoff. For browser-versus-server tradeoffs, see client-side versus server-side tracking. Google’s path is separate: the Google Ads offline-conversions guide covers click-based uploads rather than Meta CAPI.
Frequently asked questions
Does Tracked automatically send affiliate conversions to Meta?
Do not rely on that as a complete live workflow today. Meta coverage is partial: supplied-event sending and queue/delivery layers exist, but automatic affiliate-postback-to-Meta delivery is not complete or production-verified. A recorded conversion still needs event mapping, a resolved account and dataset, permitted matching data, and browser context. Meta acceptance would not by itself prove attribution.
Is a Meta postback the same as Conversions API?
No. An affiliate postback is an inbound callback to the tracker after the network confirms a conversion. Conversions API is the outbound, Meta-specific server event request that follows when an implementation is configured to send it.
Do I need event_id when I use the Pixel and CAPI together?
Use Meta’s recommended shared-event-ID approach when both channels describe the same conversion: the browser eventID must match server event_id, and the event names must match. Meta documents alternative methods with limitations. Do not assume that two requests with the same payout or ad click ID will deduplicate.
Should I send raw email addresses or phone numbers?
Do not put raw customer data in callback URLs. Use only permitted fields through an approved integration and follow Meta's normalization and hashing requirements. Tracked's implemented sanitization layer handles supported fields, but that does not establish a complete live Meta delivery workflow.
What happens when delivery fails?
The implemented delivery layer retries transient errors with backoff, up to six attempts. Invalid events can fail individually. Events older than seven days expire, and token errors require Meta reconnection. Its delivery log exposes the reason and Meta trace ID. Send now processes eligible queue rows; it does not erase backoff or fix invalid data. Production activation remains pending.
Does a test event prove production delivery works?
No. Save a code from Meta’s Test Events tool before sending a test. A test event uses that code and does not establish production matching or attribution. Check a genuine conversion separately.
Does a successful API response prove that Meta attributed the sale?
No. Separate transport acceptance, event processing, match quality, and campaign reporting. Confirm each state in the provider tools before treating the conversion as a usable optimization signal.
Sources reviewed October 4, 2026: Meta’s Conversions API reference, parameter guide, click-ID guide, deduplication guide, and setup-verification guide.
Start free — early access. Use your invite or request access, then map one campaign’s callback and Meta delivery boundaries before relying on them for optimization.