Skip to content

IntegrationsMarketing Automation · Beta

Facebook API integration

Put Facebook in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Built for specific customer use cases. Issues are resolved quickly.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1,150+ apps

01Proxy API

Call the Facebook API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the Facebook API. You call us, we call Facebook, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APIFacebook

GEThttps://api.truto.one/proxy/pages?integrated_account_id=…

  • GET/proxy/comments

Facebook’s own response, passed back

02MCP server

Facebook tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets Facebook tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin Facebook
  • PagesList, Get one, Update, List user pages, Search, Get settings, Update settings, List reviews, List blocked, Block person, List tagged, List roles
  • Page postsList, Create, Delete
  • Page photoCreate
  • CommentsList, Create
  • Page insightsList, Get one
  • Subscribed appsList, Create
Show tool names22 tools, for developers
  • facebook_pages_list_user_pagesList Facebook Pages a user can perform tasks on, including page access tokens and task permissions for each Page. Returns: id, name, category, category_list, access_token, tasks. Required: user_id.
  • get_single_facebook_page_by_idGet details about a specific Facebook Page by id, with the fields parameter controlling which Page details are returned. Returns: id, name, about, attire, bio, location, parking, hours, emails, website, fan_count. Required: id.
  • update_a_facebook_page_by_idUpdate details about a Facebook Page by id, such as the about text. Returns: id. Required: id.
  • facebook_pages_searchSearch for Facebook Pages by keyword or search term. Returns: id, name, location, link, is_eligible_for_branded_content, is_unclaimed, verification_status. Required: q.
  • facebook_pages_get_settingsGet all settings for a Facebook Page. Returns: setting, value. Required: page_id.
  • facebook_pages_update_settingsUpdate a setting for a Facebook Page by setting the option parameter. Returns: psid_to_block. Required: page_id, option.
  • facebook_pages_list_reviewsGet reviews for a Facebook Page including reviewer name, recommendation type, and review text. Returns: created_time, recommendation_type, review_text, reviewer. Required: page_id.
  • facebook_pages_list_blockedList people blocked from a Facebook Page. Returns: id, name. Required: page_id.
  • facebook_pages_block_personBlock a person from commenting on a Facebook Page by sending their Page-scoped ID. Returns a confirmation object with the blocked user's Page-scoped ID as a dynamic key set to true. Required: page_id, user.
  • facebook_pages_list_taggedList posts where a Facebook Page is tagged or mentioned. Returns: id, message, created_time. Required: page_id.
  • list_all_facebook_pagesList Facebook Pages on which the authenticated user can perform tasks, including Page access tokens and task assignments. Returns: id, name, category, category_list, access_token, tasks.
  • facebook_pages_list_rolesList people who can perform tasks on a Facebook Page along with their assigned tasks. Returns: id, name, tasks. Required: page_id.
  • list_all_facebook_page_postsList Facebook Page posts from a Page's feed. Returns: id, message, created_time. Required: page_id.
  • create_a_facebook_page_postCreate a post on a Facebook Page by publishing to the Page's feed. Returns: id. Required: page_id. Scheduled posts must be between 10 minutes and 30 days from the request time.
  • delete_a_facebook_page_post_by_idDelete a Facebook Page post by id. Returns: id. Required: id.
  • create_a_facebook_page_photoPublish a photo to a Facebook Page. Returns: id, post_id. Required: page_id, url.
  • list_all_facebook_commentsList comments on a Facebook Page post. Returns each comment's id, message, created_time, and from (commentor name and PSID). Required: page_post_id.
  • create_a_facebook_commentCreate a comment on a Facebook Page post as the Page. Returns: id. Required: page_post_id, message. If the Page is unpublished, commenting is not allowed.
  • list_all_facebook_page_insightsList Facebook Page insights metrics for a specified Page, filtered by metric name and optional date range. Returns: name, period, values, title, description, id. Required: page_id, metric. Public Page metrics are stored for 2 years; unpublished Page metrics for only 5 days.
  • get_single_facebook_page_insight_by_idGet a single Facebook Page insights metric by metric name. Returns the data array with each entry including name, period, values, title, description, and id, plus a paging object. Required: page_id, id (the metric name). Public Page metric data is stored for 2 years; unpublished Pages for 5 days.
  • create_a_facebook_subscribed_appInstall an app on a Facebook Page by subscribing it to Page webhook fields. Returns: success. Required: page_id.
  • list_all_facebook_subscribed_appsList apps installed on a Facebook Page that have real-time update subscriptions. Returns: id, name, category, link. Required: page_id.

AMCP serverno code

For any MCP client

One URL per connected Facebook account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every Facebook tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

One API for Facebook and every other Marketing Automation app. One mapping to go.

The Unified Marketing Automation API gives every Marketing Automation app the same call and the same data shape. Facebook is not mapped to it yet. Map it yourself, or ask us.

Facebookon Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified Marketing Automation APIOne mapping to goTo do

Then: one call for every Marketing Automation app

  • Path 1 Self-serve

    Map it yourself

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the Facebook data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 a month, in Pro

    • 30-day trial on Free
    • Every unified API and your own unified models: Pro add-on

    See pricing

04Sync and webhooks

Sync Facebook data on a schedule. Sent to your webhook.

A sync job reads Facebook records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any Facebook endpoint. With the Truto CLI.

Need a Facebook endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any Facebook path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use Facebook in ChatGPT, Claude or Cursor with Elaichi.

Truto puts Facebook in the product you build. To use Facebook yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship Facebook tools in your product

Give the AI in your product access to each customer’s own Facebook account, with one MCP server per connected account.

Start free with Facebook

Rather talk it through? Book a demo

Elaichi

For your own team

Use Facebook in your own AI

Connect your company’s Facebook once, then ask in the AI you already use, with exactly your own access.

Works in

Facebook on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with Facebook.

  1. Power omnichannel publishing to Facebook Pages

    Let marketers draft, schedule, and publish text and photo posts to their Facebook Pages directly from your SaaS, without your team writing OAuth flows or handling Page access token refreshes.

  2. Turn Facebook comments and mentions into support tickets

    Ingest new comments, tagged posts, and reviews via subscribed webhooks so helpdesk platforms can create tickets and let agents reply as the brand without leaving the app.

  3. Sync business profile data across multi-location Pages

    Enable local SEO and listings tools to push hours, about, and profile updates across dozens or hundreds of franchise Pages in one workflow, keeping brand data consistent everywhere.

  4. Aggregate reviews and Page insights for reporting

    Pull recommendations, review text, and Page Insights metrics into BI or reputation dashboards to calculate sentiment, prove marketing ROI, and alert managers to negative feedback.

  5. Automate moderation and brand safety

    Give community managers one-click actions in your product to block abusive commenters and audit blocked users across Pages, protecting brand reputation at scale.

What you can build

Ship these with Truto and Facebook.

  • Multi-Page publisher with scheduling

    Compose once and publish or schedule posts and photos across every Page a user manages using create_a_facebook_page_post and create_a_facebook_page_photo.

  • Real-time comment inbox

    Subscribe Pages to webhooks via create_a_facebook_subscribed_app and stream new comments into a unified inbox where agents reply with create_a_facebook_comment.

  • Reviews and reputation dashboard

    Pull recommendations and review text with facebook_pages_list_reviews to score sentiment, trigger alerts, and surface trends per location.

  • Bulk profile and settings sync

    Update Page metadata and settings across hundreds of locations using update_a_facebook_page_by_id and facebook_pages_update_settings from a single control panel.

  • Insights-driven reporting

    Query page-level metrics with list_all_facebook_page_insights and get_single_facebook_page_insight_by_id to build custom performance reports and export PDFs.

  • Moderation and block management

    Review blocked users with facebook_pages_list_blocked and take instant action via facebook_pages_block_person directly from your moderation UI.

Security

Your customers’ Facebook data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Truto managed OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s Facebook account

    Use Truto’s frontend SDK to connect your customer’s Facebook account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call Facebook

    Truto’s Proxy API is a 1-to-1 mapping of the Facebook API. You call us, we call Facebook, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate Facebook’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about Facebook on Truto.

How does authentication work for Facebook Pages?

Truto handles the Facebook OAuth flow end-to-end. Once a user connects, you can list the Pages they manage via facebook_pages_list_user_pages, and Truto manages Page access tokens and refresh behind the scenes so you don't have to.

Can we receive real-time events instead of polling?

Yes. Use create_a_facebook_subscribed_app to subscribe a Page to your app, and Facebook will send webhook payloads for events like new comments, posts, and reviews. You can inspect active subscriptions with list_all_facebook_subscribed_apps.

Are there limits on scheduling posts?

Facebook requires scheduled posts to be queued between 10 minutes and 30 days from the time of the API call. Any create_a_facebook_page_post request outside that window will be rejected.

How far back can we pull Page Insights data?

Facebook retains Insights data for published Pages for up to 2 years, while unpublished Pages only retain data for 5 days. Plan historical backfills accordingly when using list_all_facebook_page_insights.

Can we update business profile data across many Pages at once?

Yes. update_a_facebook_page_by_id lets you write fields like about, hours, and location, and facebook_pages_update_settings adjusts Page-level settings. You can loop across all connected Pages retrieved from list_all_facebook_pages to run bulk updates.

What community management actions are supported?

You can read and reply to comments (list_all_facebook_comments, create_a_facebook_comment), monitor brand mentions via facebook_pages_list_tagged, list Page roles, and moderate users with facebook_pages_list_blocked and facebook_pages_block_person.

Facebook

Get Facebook integrated into your app

Sign up free, connect a test Facebook account and make your first call today. No card and no sales call.