← All integrations

Marketing Automation · Integration

Embed a Facebook Marketing integration in your product

Add Facebook Marketing to your product for your customers, and give your AI agents governed access to it.

Embed a Facebook Marketing integration so your customers can manage their own ad accounts from inside your product, working campaigns, ad sets, ads, creatives, and custom audiences and reading performance data back. Reporting reads can be large, so pagination and throttling are handled for you and each customer's ad account is scoped per customer. fastn handles per-customer authorization and token refresh, and monitors the connector for Facebook Marketing API changes, proposing a tested fix your team approves, so onboarding another ad account is configuration rather than code.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let customers connect their own ad account so campaign management happens inside your product.
  • Create and update campaigns, ad sets, and ads from your product, including budgets and schedules.
  • Build and update custom audiences from segments your product already knows about.
  • Read performance data per ad account so your product's reporting reflects real spend and results.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent reads campaign performance before recommending a budget or targeting change.
  • An agent pauses an underperforming ad set within governed permissions, with the action logged.
  • An agent pulls performance on a schedule and posts the notable changes to the team.

Example prompt

Show ad sets whose cost per result rose more than 25 percent week over week and list their current budgets.

Set up Facebook Marketing in 4 steps

  1. 01Open the Facebook Marketing connector from your fastn dashboard.
  2. 02Have each customer authenticate their own Facebook account and select ad accounts.
  3. 03Map the campaign, ad set, and reporting fields your product uses, then enable actions and triggers.
  4. 04Call them from your product, or expose them to an agent through the MCP server.

Why teams use the Facebook Marketing integration

  • Ship a Facebook Marketing integration without building it. Your customers connect their own Facebook Marketing account inside your product and work their campaigns, segments and subscribers there, and nothing lands on your team.
  • Handle the part that actually costs time: engagement data arrives as a high-volume event stream, so ordering and deduplication matter. fastn handles the auth, token refresh, rate limits and pagination, and when Facebook Marketing changes, its maintainer agent proposes a tested fix, so a Facebook Marketing update does not start in your backlog.

Used by these teams

Facebook Marketing integration FAQ

Can AI agents use this Facebook Marketing integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent reads campaign performance before recommending a budget or targeting change. For example: "Show ad sets whose cost per result rose more than 25 percent week over week and list their current budgets."

Can I trigger a Facebook Marketing campaign from an event in my product?

Yes. Product events can start a campaign, add a contact to a segment, or enrol someone in a journey, so lifecycle messaging follows what a user actually did rather than a nightly export.

Can I read engagement results back from Facebook Marketing?

Yes. Results come back scoped per tenant, so your product can act on them without one customer's data mixing with another's. What you get depends on the channel: opens, clicks, bounces and unsubscribes where there are sends, and impressions, spend and conversions where there are campaigns.

What can I build with the Facebook Marketing integration?

A common starting point: connect their own ad account so campaign management happens inside your product. The use cases above list the rest.

Add Facebook Marketing to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.