Facebook API in 2026: Keys, Access, Limits and Posting
Facebook API guide for 2026: what the Graph API covers, where the App ID and tokens come from, Advanced Access, rate limits, versions and Page posting.
The Facebook API is Meta's Graph API. You create a Meta app to get an App ID and App Secret, then act through user, Page or system user tokens. Posting to Pages needs pages_manage_posts and, for customers outside your app's roles, Advanced Access through App Review plus Business Verification. Current version: v27.0.
The Facebook API is Meta’s Graph API: one HTTP endpoint at graph.facebook.com that apps use to read and write Facebook data, with product APIs such as the Pages API, Marketing API and Messenger Platform built on top of it. There is no single “Facebook API key”. You get an App ID and App Secret when you create a Meta app, and every real call runs on an access token that a user, a Page or a system user grants to that app.
This guide covers what developers usually need from the Facebook API in 2026: which part of it you need, how keys and tokens fit together, what Standard and Advanced Access mean, the rate limits and version dates to plan around, and the exact calls for publishing to a Facebook Page. If you are comparing Facebook with the other networks, the list of social platforms with a public posting API puts all twelve side by side.
PostGate handles OAuth, publishing and delivery evidence for every network through one API. Start free or read the docs.
What is the Facebook API, exactly?
“Facebook API” is a loose name for the Graph API, Meta’s core API built from nodes (a Page, a post, a photo), edges (a Page’s feed) and fields. Everything else is a set of Graph API endpoints with its own permissions and rate limits. The current version is v27.0.
| Product | What it does | Who usually needs it |
|---|---|---|
| Pages API | Create, schedule, edit and delete Page posts; read comments and insights | Schedulers, social tools, SaaS that publishes for clients |
| Marketing API | Create and manage ads, audiences and ad insights | Ad tools and agencies |
| Messenger Platform | Send and receive messages as a Page | Support and chatbot tools |
| Instagram Platform | Publish to and read Instagram professional accounts | Anything that also posts to Instagram |
| WhatsApp Business Management API | Manage WhatsApp Business accounts and templates | Messaging platforms |
If your goal is posting, you need the Pages API. It only covers Facebook Pages: personal profiles are not a publishing target for third-party apps. Instagram runs through the same Meta app but has its own rules, covered in the Instagram API guide, and Threads has a separate API described in the Threads API guide.
How do you get a Facebook API key?
You create an app in the Meta App Dashboard at developers.facebook.com. The dashboard gives you two credentials under Settings > Basic:
- App ID: public, identifies your app in login dialogs and API calls.
- App Secret: private, used only from your server to exchange and verify tokens.
That pair is what most tutorials mean by “API key”. On its own it can create an app access token, which Meta’s access token guide describes as a server-to-server token for reading and changing app settings:
curl -X GET "https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials"
An app token cannot publish to a Page or read a person’s data. For that you need a token granted by a user, which is where the rest of this guide comes in. Two rules from Meta’s docs are worth taping to the monitor: never put the App Secret or an app token in client-side code, and store tokens in a variable-length field, because Meta changes token length over time.
Which access token do you need?
Meta documents five token types. For posting, the path is always user token first, then Page token.
| Token | How you get it | Lifetime | Use it for |
|---|---|---|---|
| User access token | Facebook Login (or Facebook Login for Business) | Short-lived: about 1-2 hours. Long-lived: about 60 days | Acting for a person; listing the Pages they manage |
| Page access token | GET /{user-id}/accounts with a user token |
Short-lived by default; one generated from a long-lived user token has no expiration date | Publishing and reading as the Page |
| System user token | Business settings > System Users | You pick an expiration when you generate it | Server automation on assets your business owns |
| App access token | client_id + client_secret, server only |
Server-to-server calls only | App settings and app-level calls |
| Client token | App Dashboard > Settings > Advanced > Security | Embedded in apps, not secret | App-level calls from native or desktop apps, sent together with the App ID |
A Page token is unique to each Page, person and app combination, so a SaaS that connects 300 Pages stores 300 tokens. Meta also warns that the 1-2 hour and 60-day figures can change or end early, so treat an expired token (error 190) as a normal event and send the person back through login. The Page access token reference explains how Page and user tokens differ, and the Instagram access token guide shows the same exchange on the Instagram side.
What do Standard Access, Advanced Access and App Review mean?
This is where most Facebook API projects stall, so it pays to know the rules before you write code. Meta’s access levels page defines two levels:
- Standard Access is granted automatically for every permission and feature, but it only works for people who have a role on your app (admin, developer, tester). Enough to build and test against your own Page.
- Advanced Access lets any Facebook user grant the permission. Each permission needs its own approval through App Review, and Advanced Access requires Business Verification (in force since February 1, 2023).
Put plainly: an internal tool that only posts to Pages your own team manages can stay on Standard Access with no review, as long as everyone who connects has a role on the app. The moment a customer outside your app’s roles has to connect their Page, you need Advanced Access for each Page permission, a verified business behind the app, and an App Review submission where Meta testers can actually log in and see the feature working. If they cannot reach the feature, Meta rejects the whole submission.
Checklist before you submit:
- App connected to a Business portfolio that has finished Business Verification (Settings > Basic > Verification).
- Only the permissions you actually use, with notes showing where each one appears in your product.
- A working test login, so the reviewer can reach every feature you request.
- A calendar reminder for Data Use Checkup, the yearly certification Meta requires from apps with Advanced Access.
How do you post to a Facebook Page with the API?
The Pages API get-started guide lists the permissions for publishing: pages_show_list, pages_manage_posts, pages_manage_metadata and pages_manage_read_engagement. Meta’s posts guide adds publish_video for video. The person connecting must be able to perform the CREATE_CONTENT task on the Page.
Step 1, get the Page ID and Page token from the user token:
curl -X GET "https://graph.facebook.com/v27.0/me/accounts?access_token=USER_ACCESS_TOKEN"
Step 2, publish a text or link post to the Page feed:
curl -X POST "https://graph.facebook.com/v27.0/PAGE_ID/feed" \
-H "Content-Type: application/json" \
-d '{"message": "Launching today", "link": "https://example.com", "access_token": "PAGE_ACCESS_TOKEN"}'
The response is {"id": "PAGE_POST_ID"}, and the public URL of the post is https://www.facebook.com/PAGE_POST_ID.
Other operations on the same objects:
- Photo:
POST /PAGE_ID/photoswith aurlparameter. The response carries both the photo ID and the post ID. - Video: goes through the Video API upload flow, covered in the Graph API video upload guide. The full request flow is in the Graph API posting guide.
- Scheduling: send
"published": falsewithscheduled_publish_time(UNIX seconds or ISO 8601). The time must be between 10 minutes and 30 days after the request. - Editing:
POST /PAGE_POST_IDwith a newmessage. An app can only edit posts that the same app created. - Deleting:
DELETE /PAGE_POST_ID.
The 30-day window is the one that bites schedulers: a content calendar planned two months out cannot be handed to Facebook in one go. You keep the post in your own queue and send it to Meta inside the window, or publish it yourself at the scheduled minute.
What are the Facebook API rate limits?
Meta’s rate limiting docs split limits by the token you use:
- App and user tokens fall under Platform Rate Limits. An app gets 200 calls per hour multiplied by its number of daily active users, counted over a rolling hour. User limits are not disclosed.
- Page and system user tokens on Pages endpoints fall under Business Use Case (BUC) rate limits. When both kinds could apply, BUC wins.
Watch the X-App-Usage header: it reports call_count, total_cputime and total_time as percentages of your allowance, and throttling can start when any of them reaches 100. The throttle errors to handle are code 4 (app limit), 17 (user limit), 32 (Pages request limit) and 613 (custom limit). The per-Page numbers and backoff patterns are in the Facebook API rate limit breakdown.
Which Graph API version should you call?
Always pin a version in the URL (/v27.0/...). Meta guarantees each version for at least two years, and a version stops working two years after the next one is released. From the Graph API changelog as of November 2026:
| Version | Released | Available until |
|---|---|---|
| v27.0 | November 4, 2026 | To be announced |
| v26.0 | July 29, 2026 | To be announced |
| v25.0 | February 18, 2026 | July 29, 2028 |
| v24.0 | October 8, 2025 | February 18, 2028 |
| v23.0 | May 29, 2025 | October 8, 2027 |
| v22.0 | January 21, 2025 | May 20, 2027 |
| v21.0 | October 2, 2024 | January 21, 2027 |
| v20.0 | May 21, 2024 | September 24, 2026 (expired) |
If your code or an SDK still points at v21.0, it has until January 21, 2027. One detail that surprises people: an app can only call versions that existed when it made its first call, so a brand-new app cannot fall back to v21.0 even before that date.
Is the Facebook API free?
The Pages API documentation lists permissions, App Review and rate limits, and no per-call price for publishing. The cost of a Facebook integration shows up as engineering time instead: Business Verification, App Review submissions, token refresh handling, rate limit backoff and a version upgrade at least every two years. For how this compares with the paid APIs (X, LinkedIn partner tiers, unified posting APIs), see the social media API pricing comparison.
Should you build on the Facebook API directly?
Build directly if Facebook is your only network and you are ready to own App Review, verification and token storage. If Facebook is one of several networks in your product, most of the work above repeats for Instagram, Threads, TikTok and LinkedIn with different rules each time. That is the part PostGate takes over: your users connect Facebook Pages through a hosted OAuth flow, and one publish request covers feed posts, Page Reels (single vertical video, 3 to 90 seconds), Page Stories and a first comment, with per-target delivery status coming back to you. Edits to a feed post’s text and deletes on Facebook go through the same post object. If you want the approval status and quotas under your own name, you can bring your own Meta app and PostGate uses its App ID and Secret. App Review and Business Verification still apply to publishing on Facebook Pages either way: Meta’s rules don’t change because a middle layer sends the request.
Frequently asked questions
Is the Facebook API the same as the Graph API?
Yes, in practice. “Facebook API” almost always means the Graph API at graph.facebook.com. The Pages API, Marketing API and Messenger Platform are groups of Graph API endpoints with their own permissions and limits.
Where do I find my Facebook API key?
Create an app in the Meta App Dashboard and open Settings > Basic: the App ID and App Secret there are the closest thing to an API key. To post or read Page data you still need a user token and then a Page token granted through Facebook Login.
Can I post to a personal Facebook profile with the API?
No. The publishing endpoints cover Facebook Pages, and the person connecting must be able to perform the CREATE_CONTENT task on that Page. Personal timelines are not a target for third-party apps.
Do I need App Review to use the Facebook API?
Only if people without a role on your app will use it. Standard Access works for app admins, developers and testers with no review. Letting any customer connect their Page requires Advanced Access for each permission, which means App Review plus Business Verification.
How long does a Facebook Page access token last?
A Page token generated from a short-lived user token expires within hours. One generated from a long-lived user token has no expiration date, but Meta notes it can still be invalidated under certain conditions, so handle error 190 and send the person through login again.
