Server-Side API

The server-side API (for web) allows advertisers to send web events from their servers directly to Facebook. Server-side events are linked to a pixel and are processed like browser pixel events. This means that server-side events are used in measurement, reporting, and optimization in the same way as browser pixel events.

Recommended Steps

  1. Get Started - See prerequisites to use the API and learn how to create an access token.
  2. Implement API and start sending requests - Start making POST requests and learn more about dropped events, batch requests, and event transaction time.
  3. Verify Events - Confirm that we have received your events.

Resources

API Parameters

Required and optional parameters you can use to improve ads attribution and delivery optimization.

Payload Helper

See how your payload should be structured when it is sent to Facebook from your server.

Debugging

Learn how to handle error codes returned by the API.

Subscription Lifecycle Events

For subscription advertisers. Prerequisites, required parameters, and reporting metrics for subscription events.

Facebook Pixel Events

Learn more about the Pixel's Standard Events and Custom Events.

Business Help Center

From our Help Center, see About Server-Side API for Web and Test Your Server Events.