EN
Developer guide

Facebook API Guide: Graph API, Access, Limits and Connected Accounts

What Meta's Facebook APIs cover in 2026, how to get access tokens and App Review, what the official API no longer allows, and how a SaaS app can connect its users' own Facebook accounts instead.

Your App Live
FacebookAnna LeePersonal FacebookNorthwind BakeryPage
Post
Northwind BakeryAs Page · Just now

Our autumn menu starts Monday.

243
Julia NashThe pumpkin bread is back!
Messages
Maya RossTo Northwind Bakery
Do you deliver on Sundays?
Yes, 9am to noon.
Seen
Webhooks New message New reaction
GETchats POSTmessages/send POSTposts 200 OK
Short answer

Yes, Facebook has an API: the Graph API, Meta's HTTP interface for reading and writing Facebook data. Products such as the Pages API, the Messenger Platform and the Marketing API are built on top of it. You access it through a Meta app, access tokens granted by users or Pages, and permissions approved in App Review.

This guide maps each Facebook API to the account it serves, explains access and limits, lists what Meta has removed, then shows another model for SaaS apps: letting each user connect their own Facebook account through the Facebook Messenger API by Unipile.

Definition

Is There a Facebook API?

Yes. Meta exposes Facebook data to developers through the Graph API, a versioned HTTP API. Every other Facebook developer product, from Page management to Messenger and ads, is a set of Graph API endpoints with its own permissions and review.

There is no single API key. What you get depends on whose data you touch: a person who logs in to your app, a Facebook Page they manage, or an ad account. Each one comes with its own token type and its own review by Meta.

Facebook Whose data are you reading?
A userUser access token from Facebook Login, limited to the permissions the person grants.
A PagePage access token, for someone who has a task on that Page.
An ad accountMarketing API access through a business and its system users.
Graph API

What Is the Facebook Graph API?

The Graph API is the HTTP API behind every Facebook integration. All requests go to graph.facebook.com, and almost every endpoint requires an access token. Data is organized as a graph of nodes, edges and fields.

Nodes

Objects

A single object with an ID: a user, a Page, a post, a comment, a photo. Example: GET /{page-id}.

Edges

Connections

Collections attached to a node, such as the posts of a Page or the comments of a post. Example: GET /{page-id}/feed.

Fields

Properties

The data you ask for on a node, selected with the fields parameter. Example: ?fields=id,message,created_time.

Versions and the Graph API Explorer

Each request can name a version in its path, such as /v27.0/, released on November 4, 2026. Meta ships several versions a year and keeps each one for at least two years, so plan upgrades: the changelog gives the date until which each version stays available. The Graph API Explorer lets you test calls before writing code, and the Meta Graph API tab of the code example below shows a first request: reading a Page feed.

Source: Meta's Graph API changelog, which listed v27.0 (introduced November 4, 2026) as the latest version. Last verified: November 17, 2026.

Map

The Facebook APIs at a Glance

Each Facebook API serves one kind of account. Choosing the right one starts with a simple question: are you acting for a person, a Page or an advertiser?

APIWhat it doesAccount it servesAccess required
Graph APIRead and write Facebook objectsUsers, Pages, businessesMeta app, access token, permissions
Pages APIPublish posts, moderate comments, read Page data. Guide: Facebook post APIFacebook PagesPage access token, Page tasks, App Review
Messenger PlatformSend and receive Page conversationsFacebook Pages and Instagram professional accountsPage token, messaging permission, App Review
Marketing APICreate ads and read ad performanceAd accountsBusiness verification, ads permissions
Conversions APISend web and offline events for adsBusinesses running adsPixel or dataset, system user token
Facebook LoginSign people in to your appFacebook usersMeta app with Facebook Login
Graph API
What it doesRead and write Facebook objects
AccountUsers, Pages, businesses
AccessMeta app, access token, permissions
Pages API
What it doesPublish posts, moderate comments, read Page data. Guide: Facebook post API
AccountFacebook Pages
AccessPage access token, Page tasks, App Review
Messenger Platform
What it doesSend and receive Page conversations
AccountFacebook Pages and Instagram professional accounts
AccessPage token, messaging permission, App Review
Marketing API
What it doesCreate ads and read ad performance
AccountAd accounts
AccessBusiness verification, ads permissions
Conversions API
What it doesSend web and offline events for ads
AccountBusinesses running ads
AccessPixel or dataset, system user token
Facebook Login
What it doesSign people in to your app
AccountFacebook users
AccessMeta app with Facebook Login

Messaging on Instagram goes through the same Messenger Platform: see our guide to the Messenger API for Instagram. WhatsApp has its own platform, covered in the WhatsApp API guide.

Decision

Which Facebook API Do You Need?

Start from what your product does, not from the API list. Each situation below points to one API and its access requirements.

You publish to your own Page

Pages API

Page access token from a Page admin, Page tasks, App Review. Facebook Page API guide.

You answer people who message your Page

Messenger Platform

Page token, pages_messaging, 24 hour messaging window.

You run or measure ads

Marketing API and Conversions API

Ad account access, business verification, system users.

You let people sign in with Facebook

Facebook Login

A Meta app with Facebook Login configured.

Your users connect their own accounts in your SaaS

Unipile API

Personal accounts and the Pages they manage, through hosted authentication.

Access

How to Get Access to the Facebook API

There is no standalone API key. You create a Meta app, people grant it access tokens through Facebook Login, and Meta reviews the permissions your app requests before it can serve the public.

1

Create a Meta developer account

Register on Meta for Developers with your Facebook account.

2

Create a Meta app

Pick the app type and use case, then note the App ID and App Secret.

3

Add Facebook Login for Business

Users and Page admins sign in and grant permissions to your app.

4

Request permissions

For example pages_show_list, pages_manage_posts or pages_messaging.

5

Pass App Review

Advanced Access is required before people without a role on your app can use it.

Access tokens: user, Page, app and system user

TokenActs forTypical use
User access tokenActs for a person who logged in to your appShort lived by default, can be exchanged for a long lived token
Page access tokenActs for a Page, obtained from /me/accountsNeeded by most Pages API and Messenger endpoints
App access tokenActs for the app itselfApp settings and some public data
System user tokenActs for a business, without a personServer to server jobs, ads and Pages owned by the business
User access token
Acts forActs for a person who logged in to your app
Typical useShort lived by default, can be exchanged for a long lived token
Page access token
Acts forActs for a Page, obtained from /me/accounts
Typical useNeeded by most Pages API and Messenger endpoints
App access token
Acts forActs for the app itself
Typical useApp settings and some public data
System user token
Acts forActs for a business, without a person
Typical useServer to server jobs, ads and Pages owned by the business

Lifetimes differ by type. According to Meta, short-lived user tokens typically last about one to two hours and long-lived ones about 60 days, while system user tokens can be set not to expire based on time; Meta warns that these durations may change without notice. The full walkthrough, from generating a token to exchanging and debugging it, is in our Facebook API access token guide, and the Facebook Page access token is covered in the Page API guide.

Permissions, Page tasks and App Review

Most Pages API endpoints need a Page access token from a person who can perform a task on the Page, such as CREATE_CONTENT or MODERATE. In development mode, only people with a role on your app can use it. To serve other users, each permission needs Advanced Access, granted after App Review, and business apps often need business verification too.

Sources: Meta's access tokens guide and Pages API overview. Last verified: November 17, 2026.

Real time

Facebook API Webhooks: Get Events in Real Time

Instead of polling, Meta pushes events to an HTTPS endpoint you own: new Page messages, read receipts and reactions. Setting it up takes four steps.

1

Verify your endpoint

Meta sends a GET request with hub.mode, hub.verify_token and hub.challenge. Check the token and return the challenge.

2

Subscribe the Page

Call POST /{page-id}/subscribed_apps with a Page access token and the fields you need, such as messages.

3

Validate every payload

Each event carries an X-Hub-Signature-256 header, a SHA256 signature made with your App Secret.

4

Answer fast

Return 200 OK quickly. For Messenger, Meta asks for a response within 5 seconds and disables the subscription after an hour of failures.

Facebook Messenger webhook fields
messagesA person sends a message to the Page
message_readsThe person read your message
message_deliveriesYour message was delivered
message_reactionsThe person reacted to a message
messaging_postbacksThe person tapped a button or menu item
POST /{page-id}/subscribed_apps success

With Unipile, you register one webhook URL and receive new, edited and deleted messages, read receipts and reactions for every connected Facebook account, in the same format as your other channels.

Sources: Meta's Webhooks getting started guide and Messenger webhooks. Last verified: November 2026.

Limits

What the Official Facebook API Does Not Let You Do

Several things people expect from a Facebook API were removed or never offered to third party apps. Knowing them early saves weeks of design work.

  • Post to a personal profile. The publish_actions permission was deprecated on April 24, 2018 and apps lost it on August 1, 2018. Apps can publish to Pages, not to a person's own timeline.
  • Use Facebook Groups. Meta deprecated the Groups API with Graph API v19.0 on January 23, 2024, including the publish_to_groups permission.
  • Message from a personal account. The Messenger Platform lets a Facebook Page or an Instagram professional account reply to people. The standard messaging window is 24 hours after the person's last message. See how it works with a Facebook Messenger API for personal accounts.

Sources: Meta's Facebook Login changelog, Graph API v19.0 announcement and Messenger Platform overview. Last verified: November 2026.

Need your users' own conversations?

If your app needs Messenger, posts and comments from the accounts your users connect themselves, see the Facebook Messenger API by Unipile.

Rate limits

Facebook API Rate Limits and Versioning

The Graph API counts calls in two systems, depending on the token you use.

Platform rate limit 200 x users calls per hour Calls made with a user or app token, counted against the number of users of your app.
Business Use Case, Pages 4,800 x engaged users calls per 24 hours Calls to Pages endpoints with a Page or system user token.

Read the usage headers Meta returns with each response, slow down before you reach the limit, and upgrade your Graph API version before the one you call is retired.

Source: Meta's rate limiting guide. Last verified: November 2026.

Errors

Common Facebook API Errors and How to Fix Them

Graph API errors come back with a code, often an error_subcode, and an fbtrace_id to share with Meta support. Read the code before retrying: only some errors go away with time.

CodeWhat it meansWhat to do
190Access token expired or invalid (subcodes 463, 467)Get a new token; ask the user to log in again. See the Facebook API access token guide
10, 200 to 299Permission not granted or removedRequest the permission again, check App Review
4, 17, 613Too many calls for the app or the userPause, then retry with backoff
100Invalid parameter or IDCheck the ID and the token you send
368Temporarily blocked for policy violationsWait, then review what was sent
506Duplicate postChange the content before posting again
10 / 2018278Message sent outside the allowed windowReply only while the messaging window is open
Code 190
What it meansAccess token expired or invalid (subcodes 463, 467)
What to doGet a new token; ask the user to log in again. See the Facebook API access token guide
Code 10, 200 to 299
What it meansPermission not granted or removed
What to doRequest the permission again, check App Review
Code 4, 17, 613
What it meansToo many calls for the app or the user
What to doPause, then retry with backoff
Code 100
What it meansInvalid parameter or ID
What to doCheck the ID and the token you send
Code 368
What it meansTemporarily blocked for policy violations
What to doWait, then review what was sent
Code 506
What it meansDuplicate post
What to doChange the content before posting again
Code 10 / 2018278
What it meansMessage sent outside the allowed window
What to doReply only while the messaging window is open

Sources: Meta's Graph API error handling and Messenger error codes. Last verified: November 2026.

Pricing

Is the Facebook API Free?

Mostly, yes. Meta does not sell access to the Graph API. What costs money is advertising, some message types, and the engineering time to build and keep an integration running.

Graph API accessNo feeMeta does not charge for calling the Graph API. Your cost is the app setup, App Review and maintenance.
Messenger conversationsFree to useMeta describes the Messenger Platform as free to use; marketing messages are billed through your ads account.
AdsYour ad spendThe Marketing API is free to call, but the campaigns it creates are paid like any other ad.

Costs by message type, the 2026 billing changes and the real cost of running a Meta app are covered in our pricing guide, which answers is the Facebook API free in detail. If your users connect their own accounts through Unipile, you pay Unipile per connected account instead: see the API pricing.

Documentation

Where to Find the Facebook API Documentation

Everything official lives on Meta for Developers. Meta is moving its pages to developers.facebook.com/documentation/, and several older /docs/ links now redirect there. These six pages answer most integration questions; for Instagram, WhatsApp, Threads, ads and AI, see our Meta API guide.

With Unipile

Another Model: Connect Your Users' Own Facebook Accounts

CRMs, helpdesks, AI agents and multichannel inboxes need their users' own conversations and posts. With Unipile, each user links their Facebook account through a hosted authentication page, and your app calls one REST API on their behalf, without a Meta app or App Review on your side.

Your App Synced
Linked accounts
FacebookAnna LeePersonal account
FacebookNorthwind BakeryPage
Link account
Inbox 2PagePersonal
Leo MartinIs the shop open today?Page
Sara KimPhoto sentPersonal
Book clubTom: See you at 7Group
Omar HaddadSeenPage
Published as Page
Northwind BakeryJust now

Our autumn menu starts Monday.

24 reactions2 comments
Julia NashThe pumpkin bread is back!
Ben TorresDo you take pre-orders?
GET api.unipile.com/v2/{ACCOUNT_ID}/chats 200 OK
AreaWhat the Unipile API covers for Facebook
ConnectionHosted Auth or Custom Auth, with the user's credentials and two factor authentication, browser cookies or the UniLogin extension
MessagingList chats and messages, start a chat, send messages and attachments, edit, delete, forward, reactions, read receipts, group chats
Posts and commentsRead, create, edit and delete posts; list, add, reply to, edit and delete comments; reactions on posts and comments
Users and relationsProfiles, followers and following, friend requests (send, accept, decline, cancel)
WebhooksNew, updated and deleted messages, read and delivery receipts, new reactions, chat updates
Facebook PagesRead and reply to the messages of a Page the user manages, and publish posts as the Page. A Page cannot start a conversation or delete its messages
Not supportedStories, pinned messages, blocking users
Connection
Hosted Auth or Custom Auth, with the user's credentials and two factor authentication, browser cookies or the UniLogin extension
Messaging
List chats and messages, start a chat, send messages and attachments, edit, delete, forward, reactions, read receipts, group chats
Posts and comments
Read, create, edit and delete posts; list, add, reply to, edit and delete comments; reactions on posts and comments
Users and relations
Profiles, followers and following, friend requests (send, accept, decline, cancel)
Webhooks
New, updated and deleted messages, read and delivery receipts, new reactions, chat updates
Facebook Pages
Read and reply to the messages of a Page the user manages, and publish posts as the Page. A Page cannot start a conversation or delete its messages
Not supported
Stories, pinned messages, blocking users

Users can connect a personal Facebook account, and the Pages they manage become available through the same endpoints. The same API also covers LinkedIn, WhatsApp, Instagram, Telegram, email and calendars. Full list in the provider features table.

List chats and send a message

Once a user has connected their account, you get an account_id. Every call uses your Unipile API key in the X-API-KEY header. The second tab shows a first call to Meta's Graph API for comparison: reading the latest posts of a Page with a Page access token.

# 1. List the Facebook chats of a connected account
curl --request GET \
  --url "https://api.unipile.com/v2/{ACCOUNT_ID}/chats" \
  --header "X-API-KEY: {YOUR_API_KEY}"

# 2. Reply in one of those chats
curl --request POST \
  --url "https://api.unipile.com/v2/{ACCOUNT_ID}/chats/{CHAT_ID}/messages/send" \
  --header "X-API-KEY: {YOUR_API_KEY}" \
  --header "content-type: application/json" \
  --data '{ "text": "Thanks for your message, your order ships today." }'
# Read the 3 latest posts of a Page (Graph API v27.0)
# Needs a Page access token with pages_read_engagement and pages_read_user_content
curl "https://graph.facebook.com/v27.0/{PAGE_ID}/feed?fields=id,message,created_time&limit=3&access_token={PAGE_ACCESS_TOKEN}"

# Response (abridged)
{ "data": [ {
    "id": "{PAGE_ID}_{POST_ID}",
    "message": "Our autumn menu starts Monday.",
    "created_time": "2026-11-16T09:30:00+0000"
  } ],
  "paging": {
    "cursors": { "before": "{CURSOR}", "after": "{CURSOR}" },
    "next": "https://graph.facebook.com/v27.0/{PAGE_ID}/feed?..."
  } }
200 OK · message sent from the user's account
200 OK · posts of one Page, one Page token per Page

Step by step setup in the Facebook quickstart. Graph API request checked against Meta's Page feed reference on November 17, 2026.

Compliance

Each user connects their own account

Unipile is an independent company, not an official Meta app and not a Meta Partner. It acts on behalf of authenticated users, and your users remain bound by Meta's terms. Use it for legitimate scenarios such as customer support, CRM and direct conversations.

API reference

Facebook API Endpoints with Unipile

In short

Unipile exposes Facebook through one REST API. Its V2 endpoints cover Messenger chats and messages, posts, comments, reactions, profiles, friend requests, Facebook Pages and webhooks. Each call targets a connected account by its account_id, so one integration serves a personal account and the Pages it manages, with no Meta app on your side.

ActionMethod and pathPersonal / PageGuide
Messaging
List chatsGET/v2/{account_id}/chatsPersonalMessenger for personal accounts
List the messages of a chatGET/v2/{account_id}/chats/{chat_id}/messagesPersonal + Page
Download an attachmentGET/v2/{account_id}/chats/{chat_id}/messages/{message_id}/attachments/{attachment_id}Personal + Page
Start a new chatPOST/v2/{account_id}/chats/sendPersonalHow to send a Messenger message
Send a message, text or attachmentsPOST/v2/{account_id}/chats/{chat_id}/messages/sendPersonal + Page
List, add or remove message reactionsGETPOSTDELETE/v2/{account_id}/chats/{chat_id}/messages/{message_id}/reactionsPersonal
Mark a message as readPOST/v2/{account_id}/chats/{chat_id}/messages/{message_id}/readPersonal
Posts
List the posts of a user or a PageGET/v2/{account_id}/users/{user_id}/postsPersonal + PageFacebook Post API guide
Get a postGET/v2/{account_id}/posts/{post_id}Personal + Page
Create a postPOST/v2/{account_id}/postsPersonal + Page
Edit or delete a postPATCHDELETE/v2/{account_id}/posts/{post_id}Personal + Page
Comments
List the comments of a postGET/v2/{account_id}/posts/{post_id}/commentsPersonalRead and reply to comments
List the replies to a commentGET/v2/{account_id}/posts/{post_id}/comments/{comment_id}/repliesPersonal
Add a commentPOST/v2/{account_id}/posts/{post_id}/commentsPersonal
Reply to a commentPOST/v2/{account_id}/posts/{post_id}/comments/{comment_id}Personal
Edit or delete a commentPATCHDELETE/v2/{account_id}/posts/{post_id}/comments/{comment_id}Personal
Reactions
List, add or remove post reactionsGETPOSTDELETE/v2/{account_id}/posts/{post_id}/reactionsPersonalReactions in the comments guide
List, add or remove comment reactionsGETPOSTDELETE/v2/{account_id}/posts/{post_id}/comments/{comment_id}/reactionsPersonal
Profiles and relations
Get a profileGET/v2/{account_id}/users/{user_id}PersonalSync contacts to your CRM
List friendsGET/v2/{account_id}/users/me/relationsPersonal
List followers or followingsGET/v2/{account_id}/users/{user_id}/followersGET/v2/{account_id}/users/{user_id}/followingPersonal
Send or list friend requestsPOSTGET/v2/{account_id}/users/me/relation-requestsPersonal
Accept, decline or cancel a requestPOST/v2/{account_id}/users/me/relation-requests/{request_id}/acceptPOST/v2/{account_id}/users/me/relation-requests/{request_id}/cancelPersonal
Facebook Pages
Find the Pages of the accountGET/v2/{account_id}/inboxesPageFacebook Page API walkthrough
List the chats of a PageGET/v2/{account_id}/inboxes/PAGE_{page_id}_INBOX/chatsPage
Reply as the PagePOST/v2/{account_id}/chats/PAGE_{page_id}_{thread_key}/messages/sendPage
Publish a post as the PagePOST/v2/{account_id}/posts with post_asPage
Webhooks
Register a webhook endpointPOST/v2/webhooks/endpointsPersonal + PageReal time CRM sync with webhooks
Message eventsmessage.new, message.update, message.delete, message.receipt.read, message.receipt.delivery, message.reaction.newPersonal + Page
Chat eventschat.update, chat.deletePersonal
Messaging
List chatsGET/v2/{account_id}/chatsPersonal
List the messages of a chatGET/v2/{account_id}/chats/{chat_id}/messagesPersonal + Page
Download an attachmentGET/v2/{account_id}/chats/{chat_id}/messages/{message_id}/attachments/{attachment_id}Personal + Page
Start a new chatPOST/v2/{account_id}/chats/sendPersonal
Send a message, text or attachmentsPOST/v2/{account_id}/chats/{chat_id}/messages/sendPersonal + Page
List, add or remove message reactionsGETPOSTDELETE/v2/{account_id}/chats/{chat_id}/messages/{message_id}/reactionsPersonal
Mark a message as readPOST/v2/{account_id}/chats/{chat_id}/messages/{message_id}/readPersonal
Posts
List the posts of a user or a PageGET/v2/{account_id}/users/{user_id}/postsPersonal + Page
Get a postGET/v2/{account_id}/posts/{post_id}Personal + Page
Create a postPOST/v2/{account_id}/postsPersonal + Page
Edit or delete a postPATCHDELETE/v2/{account_id}/posts/{post_id}Personal + Page
Comments
List the comments of a postGET/v2/{account_id}/posts/{post_id}/commentsPersonal
List the replies to a commentGET/v2/{account_id}/posts/{post_id}/comments/{comment_id}/repliesPersonal
Add a commentPOST/v2/{account_id}/posts/{post_id}/commentsPersonal
Reply to a commentPOST/v2/{account_id}/posts/{post_id}/comments/{comment_id}Personal
Edit or delete a commentPATCHDELETE/v2/{account_id}/posts/{post_id}/comments/{comment_id}Personal
Reactions
List, add or remove post reactionsGETPOSTDELETE/v2/{account_id}/posts/{post_id}/reactionsPersonal
List, add or remove comment reactionsGETPOSTDELETE/v2/{account_id}/posts/{post_id}/comments/{comment_id}/reactionsPersonal
Profiles and relations
Get a profileGET/v2/{account_id}/users/{user_id}Personal
List friendsGET/v2/{account_id}/users/me/relationsPersonal
List followers or followingsGET/v2/{account_id}/users/{user_id}/followersGET/v2/{account_id}/users/{user_id}/followingPersonal
Send or list friend requestsPOSTGET/v2/{account_id}/users/me/relation-requestsPersonal
Accept, decline or cancel a requestPOST/v2/{account_id}/users/me/relation-requests/{request_id}/acceptPOST/v2/{account_id}/users/me/relation-requests/{request_id}/cancelPersonal
Facebook Pages
Find the Pages of the accountGET/v2/{account_id}/inboxesPage
List the chats of a PageGET/v2/{account_id}/inboxes/PAGE_{page_id}_INBOX/chatsPage
Reply as the PagePOST/v2/{account_id}/chats/PAGE_{page_id}_{thread_key}/messages/sendPage
Publish a post as the PagePOST/v2/{account_id}/posts with post_asPage
Webhooks
Register a webhook endpointPOST/v2/webhooks/endpointsPersonal + Page
Message eventsmessage.new, message.update, message.delete, message.receipt.read, message.receipt.delivery, message.reaction.newPersonal + Page
Chat eventschat.update, chat.deletePersonal

Authentication. Every request carries your Unipile API key in the X-API-KEY header. Your users connect their own Facebook account through Hosted Auth, so you never create a Meta app, go through App Review or store a Page token. Compare this with a Facebook API access token, and see the Messenger API pricing breakdown for costs.

Endpoints taken from the Unipile V2 Facebook documentation and its provider features table. Last verified: November 17, 2026.

Use cases

Facebook API by Use Case

Most Facebook integrations fall into one of these families. Here is what each one looks like inside a product.

Your CRM
ContactsDeals
ContactStage
Julia ChenIs the demo still on?QualifiedFacebook
Lucas MeyerSend me the quoteProposalFacebook
Sofia RiveraSigned, thanks!WonFacebook
Daniel MoreauLet's talk MondayNewFacebook

Facebook Messenger CRM integration

Sync conversations with contact records so sales and support teams reply from the CRM. See the Facebook Messenger CRM integration.

Every conversation saved on the right contact, without copy and paste.

Your Helpdesk
TicketsCustomers
RequestStatus
Mia OwensWhere is my order? #4521OpenFacebook
Elena GarciaRefund received #4498SolvedFacebook
Gabriel LopezPhoto attached #4530PendingFacebook
Anna RossiI can't log in #4476OpenFacebook

Facebook chat and Messenger

Reply to the people who message a Page through the Messenger Platform, or to the contacts of a connected account. See how to send a message.

Facebook requests answered in the usual support tool.

Your Social Tool
Post asFacebookNorthwind BakeryFacebookAnna Lee
Fresh sourdough every morning from 7am.
Publish
Our autumn menu starts MondayPage · TodayPublished
Thanks for 10 great years!Page · Oct 2Edited

Facebook post API

Create, edit and read posts. The official API publishes to Pages only, while a connected account can post as its user. Read the Facebook post API guide.

Posts written, published and edited from your own product.

Your Community Tool
Comments on Anna Lee's post Our autumn menu starts Monday
CommentTopic
Ben TorresDo you take pre-orders?QuestionFacebook
Julia NashThe pumpkin bread is back!FeedbackFacebook
Kai OkaforIs it gluten free?QuestionFacebook
Priya RaoCan we book for 20 people?SalesFacebook

Facebook comments API

List the comments on a post, then reply, edit or delete from the user's own connected account. Comments always come from that account, never from a Page: commenting as a Page goes through Meta's Pages API. Read the Facebook comments API guide.

Questions under a post spotted and routed to the right team.

Facebook Page API

Publish and moderate the content of a Facebook Page, with a Page access token and the right Page tasks. Read the Facebook Page API guide.

Facebook Messenger API pricing

Meta describes the Messenger Platform as free to use, while marketing messages are billed through ads. Integration and review time are the real cost. See the full breakdown.

Building a single inbox across networks? Read how a unified messaging API works, and our Instagram API guide for the other Meta network.

Choose the right API for your product

Meta's Graph API is the right tool when your app manages its own Pages or ads. When your product needs the conversations and posts of each user's own account, connect them through Unipile and use one API for Facebook and your other channels.

European Commission
EU Regulated Digital Markets Act (DMA)

Each user connects their own account, with no profile storage. Unipile is not a Meta Partner. Our Digital Markets Act approach

Facebook API FAQ

Quick answers on keys, versions, access levels, Meta partnership, compliance and Groups.

Developers use it to manage Facebook Pages (posts, comments, insights), answer Page conversations through the Messenger Platform, run and measure ads, and sign people in with Facebook Login. Each use relies on a Graph API product with its own permissions.

There is no single key. Create a Meta app on Meta for Developers to get an App ID and App Secret, then obtain access tokens: user tokens through Facebook Login, Page tokens from /me/accounts. Permissions used by the public need Advanced Access after App Review.

The Graph API is the base HTTP API for Facebook objects such as users, Pages, posts and comments. The Marketing API is a set of Graph API endpoints for ad accounts, campaigns, audiences and reporting, with its own permissions and business requirements.

Not with Meta's official API: apps lost the publish_actions permission on August 1, 2018, and can only publish to Pages. With Unipile, a user who connects their own Facebook account can create posts from it through the Posts endpoints, within Meta's terms.

No. Meta deprecated the Groups API with Graph API v19.0 in January 2024, including the publish_to_groups permission. Unipile does not cover Facebook Groups either.

In November 2026, Meta's changelog listed v27.0 as the latest Graph API version. Meta ships several versions a year and keeps each one available for at least two years, so check the Graph API changelog before you pin one.

No. Unipile is an independent company that works next to Meta's Graph API, not for Meta. It is not a Meta Partner and not an official Meta app, and it is not endorsed, sponsored or approved by Meta. Facebook and Messenger are trademarks of Meta Platforms, Inc.

No. The Meta app, Facebook Login and App Review steps described in this guide apply to Meta's official API. With Unipile, each user links their own Facebook account, and the Pages they manage, through a hosted authentication page, so you skip those steps on your side.

It is designed in the spirit of the Digital Markets Act: rather than one app reading many accounts, each user connects their own account and Unipile acts on their behalf, without storing user profiles. Details on our Digital Markets Act page.

Yes. Whether you call the Graph API or Unipile, Facebook accounts stay subject to Meta's Terms of Service. Keep to legitimate uses such as customer support, CRM and conversations people expect; spam and unauthorized automation can get an account restricted.

Your app is still limited to people with a role on it. With Standard Access, permissions can only be requested from app admins, developers and testers. To serve other people's Pages, each permission needs Advanced Access, approved through App Review, and Meta requires Business Verification for it.

Still have questions? Our team is here to help.

Talk to an expert