Facebook API for developers and AI agents

Facebook Page publishing without rebuilding account connection, media upload, format routing, queues, and webhook status handling.

No credit card required

import { KavenioClient } from "@kavenio/sdk";

const kavenio = new KavenioClient({
  authToken: process.env.KAVENIO_API_KEY,
});

// Send your user to this URL to connect their Facebook Page.
const { authorizationUrl } = await kavenio.connect.begin({
  platform: "facebook",
});

// Publish to the connected Facebook Page.
await kavenio.posts.create({
  content: "Launch week is live.",
  publishNow: true,
  mediaItems: [{ type: "image", url: "https://cdn.example.com/launch.jpg" }],
  platforms: [
    {
      platform: "facebook",
      accountId: "acct_fb_123",
      platformSpecificData: { contentType: "feed" },
    },
  ],
});

How it works

Connect the Page, publish to a selected Facebook account, and run the workflow with REST, the CLI, or the SDK.
  1. kavenio.connect.begin(...)

    Create a Facebook connect URL and send the user through Page authorization.

  2. kavenio.posts.create(...)

    Publish now or schedule a Facebook Page feed post, Story, Reel, video, or carousel with the selected connected account.

  3. kavenio.webhooks.create(...)

    Trigger your automation when Facebook publishing succeeds, fails, or needs attention instead of polling for state.

Formats

Publish the Facebook formats your product needs

Let customers choose feed, Story, Reel, video, and carousel behavior without building a separate Facebook-only publishing path.
Page feed posts
Image posts
Video posts
Reels
Stories
Carousel posts
First comments
Native scheduling
Developer workflow

Build Facebook Page publishing without provider plumbing

Keep your product focused on the customer workflow while the API handles Page connection, media publishing, and platform-specific options.

Page connection and tokens

Send users through Facebook connection once, then publish through the selected Page account.

Feed, Story, and Reel routing

Choose the Facebook content type in the request instead of branching your product workflow by format.

Media and carousel handling

Pass public media URLs for image, video, GIF, and carousel publishing without building provider upload paths.

Queue and webhooks

Schedule posts, publish now, and trigger automation from status events instead of polling provider APIs.

App keys

Bring your own Facebook app when you need control

Use the Kavenio-managed Facebook app to get started, or connect through your own Facebook app when your team owns approvals, branding, and policy setup.

Use the Kavenio-managed Facebook app

Start testing Facebook Page connection and publishing without configuring your own Facebook app first.

Bring your own Facebook app

Use your Facebook app credentials when your team owns approvals, branding, and policy setup.

Build the Facebook publishing workflow once

Stop rebuilding Page connection, media upload, format handling, retries, and status events for every product surface.

Reuse the same connect and publishing workflow for the next supported platform.

Facebook API questions

Practical details for building Facebook Page publishing into your product.

Can I publish Facebook Page posts through Kavenio?

Yes. Connect a Facebook Page account, pass the content and media, and publish through the same posts API used for other platforms.

Can I publish Facebook Reels?

Yes. Send a public video URL and set the Facebook content type for Reels when the post should publish as a Reel.

Can I publish Facebook Stories?

Yes. Use the Facebook content type for Stories and provide one story media item in the request.

Can I publish carousel posts?

Yes. Provide carousel cards and matching image media items to publish Facebook carousel posts.