Engineering

Meta Graph API explained: Facebook Pages, Instagram and Threads

Understand Meta's API architecture, choose the right access token, and separate Facebook Pages, Instagram and Threads before building your integration.

Meta Graph API explained: Facebook Pages, Instagram and Threads

The Meta Graph API is Meta's HTTP interface for reading and writing platform data through objects called nodes, their connections called edges, and properties called fields. Facebook Pages uses it directly, Instagram has different API setups with different authentication requirements, and Threads uses a separate API at graph.threads.net.

Getting the URL right is only the start. A working integration also needs the correct token type, permissions, asset access, API version and production approval.

TL;DR

  • Use the Graph API's node, edge and field model to understand requests, not as a promise that every Meta product shares credentials.
  • As of November 17, 2026, the latest Graph API version is v27.0, released November 4, 2026, according to Meta's changelog.
  • Facebook Page publishing normally uses a Page access token. An app token is not a substitute.
  • Customer-facing integrations need the access level and review required by their permissions, not just a successful developer test.
  • Read usage headers and implement backoff. There is no single rate limit covering every Meta endpoint.

How the Meta Graph API models data

Meta's Graph API overview describes three building blocks:

Building block

What it represents

Example

Node

An individual object

A Facebook Page or post

Edge

A connection to a collection of objects

A Page's posts

Field

A property of an object

A Page's id or name

This is an HTTP API, not GraphQL. You choose an endpoint, HTTP method and parameters. The fields parameter selects properties; it does not bypass permissions or make unavailable data accessible.

For example, read two fields from a Page node:

bash
1curl -G "https://graph.facebook.com/v27.0/${PAGE_ID}" \
2  -H "Authorization: Bearer ${PAGE_ACCESS_TOKEN}" \
3  --data-urlencode 'fields=id,name'

Then traverse the Page's posts edge and select fields from each returned post:

bash
1curl -G "https://graph.facebook.com/v27.0/${PAGE_ID}/posts" \
2  -H "Authorization: Bearer ${PAGE_ACCESS_TOKEN}" \
3  --data-urlencode 'fields=id,message,created_time'

These examples assume your token can read the Page and its posts. An edge returns a collection, so handle pagination rather than assuming the first response contains everything. Treat IDs as strings and preserve them exactly. Do not assume an ID from one product or authorization context identifies the same resource elsewhere.

Facebook Pages, Instagram and Threads are not one integration

The familiar Graph-style URL structure can hide important product boundaries.

Product or setup

API host

Key distinction

Facebook Pages API

graph.facebook.com

Page objects, posts and Page-specific permissions

Instagram API with Unified Login

graph.facebook.com

Professional accounts; no Facebook Page required

Instagram API with Instagram Login

graph.instagram.com

Instagram credentials and Instagram-specific permissions

Instagram API with Facebook Login

graph.facebook.com

Professional Instagram account linked to a Facebook Page

Threads API

graph.threads.net

Separate authorization, permissions and publishing endpoints

Facebook Pages API

The Pages API exposes Page publishing and management through Graph API endpoints. Posting as a Page is different from posting to a personal Facebook profile. Start with the Page you are authorized to manage, its Page access token and the permissions required for the action.

Our Facebook API guide covers the Facebook-specific implementation path. This article focuses on the shared architecture and the boundaries between Meta products.

Instagram APIs

Meta's current Instagram Platform overview lists three setups, including Unified Login, which it recommends for new integrations. Unified Login and Instagram Login do not require a Facebook Page; the Page-linked Facebook Login setup does.

That distinction matters when evaluating older tutorials. “Instagram always requires a Facebook Page” is not an accurate umbrella rule. Neither is “all Instagram requests go to graph.facebook.com.”

Choose the setup before implementing OAuth or requesting scopes. For account requirements, publishing flows and Instagram-specific examples, use our Instagram Graph API deep dive.

Threads API

Threads is a separate API, even though its request structure looks familiar. Meta's Threads overview documents both graph.threads.net and graph.threads.com as supported hosts.

Do not send a Facebook Page token to Threads or assume the Facebook Graph API version number applies there. Threads has its own scopes, including threads_basic and threads_content_publish, and its own publishing workflow. See the Threads API guide for that implementation.

Which Graph API access token do you need?

A Graph API access token identifies the actor making the request. Its type matters independently of which permissions appear to be granted.

Meta's access token documentation distinguishes these common types:

Token type

Typical purpose

Important limitation

User

Act on behalf of a person after login and consent

Restricted by granted permissions and the person's access

Page

Read or publish as a particular Facebook Page

Must correspond to the target Page

System user

Automate actions on assigned business assets

Requires the appropriate asset access and permissions

App

Perform app-level operations

Does not replace user consent or Page authorization

For a typical Page integration, the person authorizes your app first. You use their User token to discover accessible Pages and obtain the corresponding Page token. Store the Page ID and its token together, rather than selecting an arbitrary result from the returned accounts list.

A system user is useful for business-owned or shared assets, but it is not a shortcut around customer authorization. Meta checks whether that system user can access the requested resource.

Long-lived does not mean permanent

For Facebook Login, Meta says a long-lived User token generally lasts about 60 days. Its long-lived token guide also explains how to obtain a long-lived Page token from a long-lived User token. Those Page tokens have no scheduled expiration date, but can still become invalid.

Build a reconnect path even when no expiration timestamp is present. Revocation or changes to access can break an integration without a timer running out. Keep app secrets and token exchanges server-side, encrypt stored credentials, and exclude tokens from logs.

The exchange procedures are product-specific. Do not copy a Facebook token exchange into a Threads integration. For the Page-focused walkthrough, read Facebook and Instagram long-lived Page access tokens.

Use Graph API Explorer to isolate problems

Graph API Explorer is Meta's interactive tool for constructing requests, generating testing tokens and inspecting responses. It is useful for proving that a particular actor can access a particular resource before debugging your application code.

Use a small, repeatable sequence:

  1. Select your own Meta app rather than testing against the wrong app context.
  2. Choose the API version you intend to use in production.
  3. Generate the relevant token and request only the permissions needed for the test.
  4. Run a simple read such as /me?fields=id,name with a User token.
  5. Test the target Page and endpoint with the appropriate Page token.

If a request succeeds in Explorer but fails from your server, compare the app, version, token type, target ID and granted permissions. Do not begin by adding every available scope.

Explorer is a debugging tool, not your production credential system. A copied testing token does not establish that external customers can authorize the same permissions.

Permissions, App Review and Business Verification

Authorization has several layers: the endpoint must support the operation, your app must have the necessary access level, the user must grant the permissions, and the actor must have access to the asset.

For Page posting, the relevant permissions include pages_manage_posts and pages_read_engagement; Page discovery uses pages_show_list. Check the exact operation in Meta's Pages posts guide, including its Page task requirements. Reading comments or managing other resources can require additional permissions.

Meta's permissions reference distinguishes App Review from Business Verification. App Review assesses the intended use of permissions and features. Business Verification verifies the business behind the app and is required for Advanced Access.

A developer-account test is therefore not a launch checklist. Before onboarding customers, confirm the access level for each permission and complete the required review. Prepare a working reviewer journey that demonstrates login, consent and the feature using the requested data. Meta's submission guide documents the current submission requirements.

Ask for scopes your product actually uses. A minimal permission set is easier to explain to customers and reviewers, and easier to troubleshoot later.

Meta Graph API version and deprecation cadence

The latest Meta Graph API version is v27.0 as of November 17, 2026. Meta's official changelog lists its release date as November 4, 2026.

Pin the version in requests, as the examples above do. Meta's Platform Versioning policy guarantees each version for at least two years and explains retirement relative to the release of a subsequent version. Use the changelog's actual “Available Until” dates rather than calculating your own deadline.

The release history shows multiple versions per year, not a single annual upgrade. Maintain an upgrade calendar and test the next version before your current version retires.

Version pinning is not complete protection. Meta also documents out-of-cycle changes, and security or privacy changes can affect supported versions. Track the product-specific changelogs as well as the main Graph API changelog. An Instagram change and a Threads change do not necessarily follow the Facebook version schedule.

Publish a Facebook Page feed post with curl

For an authorized Page, a basic text post uses POST /{page-id}/feed, as documented in Meta's Page publishing guide.

Set PAGE_ID and PAGE_ACCESS_TOKEN in your shell environment. This request publishes a real post, so use a test Page:

bash
1curl -X POST "https://graph.facebook.com/v27.0/${PAGE_ID}/feed" \
2  -H "Authorization: Bearer ${PAGE_ACCESS_TOKEN}" \
3  --data-urlencode 'message=Hello from our integration.'

Persist the returned post ID. If publishing fails, inspect the structured error and verify authorization before retrying. If the connection times out after submission, reconcile the result before blindly creating another post. A transport failure does not prove that Meta rejected the write.

Rate limiting: read the business-use-case headers

Meta does not expose one universal “requests per hour” allowance. Its rate-limiting documentation distinguishes Platform limits from Business Use Case, or BUC, limits.

For Pages API requests, the token changes the applicable model: requests using app or User tokens follow Platform limits, while requests using Page or system user tokens follow BUC limits.

For BUC-limited responses, inspect X-Business-Use-Case-Usage. Its JSON describes usage by business object and use-case type. Fields include call_count, total_cputime, total_time and estimated_time_to_regain_access.

The first three are usage percentages, not remaining request counts. The recovery estimate is expressed in minutes. Platform-limited requests can expose X-App-Usage instead.

Capture headers with your HTTP client, pace work per affected resource and stop hammering throttled endpoints. Use backoff with jitter, cache stable metadata and avoid repeated full-history reads. Keep publishing quotas separate from general request budgets, especially when integrating Threads through its separate API.

Webhooks: subscribe instead of constantly polling

Meta webhooks notify your server when subscribed events occur. Follow the webhook setup guide for callback verification and notification validation.

Your endpoint must handle the verification challenge and validate incoming POST signatures using X-Hub-Signature-256. Validate against the raw request body with your app secret; the callback verification token is not the signing secret.

For Pages, configuring a callback is not the whole subscription process. Meta's Pages webhook guide also documents subscribing the app to the Page through subscribed_apps.

Queue accepted events for processing and make handlers safe to run more than once. Use notifications to trigger targeted reads when necessary, rather than assuming each event contains your entire application record.

How Outstand fits

Direct Meta integration makes sense when you need platform-specific control. If your product mainly needs publishing and scheduling across networks, Outstand provides a common API while handling the underlying platform integrations.

Facebook, Instagram and Threads are all Managed Keys networks in Outstand. You can use Outstand's OAuth apps instead of registering your own for those networks. Customers still authorize their accounts, and platform eligibility, permissions and limits still apply. Managed Keys does not mean unrestricted access to Meta data.

The create-post contract accepts content or a containers array and targets connected accounts through accounts. A minimal text-only request for connected Facebook and Threads accounts is:

bash
1curl -X POST https://api.outstand.so/v1/posts \
2  -H "Authorization: Bearer YOUR_API_KEY" \
3  -H "Content-Type: application/json" \
4  -d '{
5    "content": "Hello from Outstand!",
6    "accounts": ["YOUR_FACEBOOK_ACCOUNT_ID", "YOUR_THREADS_ACCOUNT_ID"]
7  }'

Replace those placeholders with exact IDs returned by GET /v1/social-accounts, not network names or native Meta IDs. Instagram publishing needs suitable media, so do not add an Instagram account to this text-only example. For media posts, use the documented container format with media url and filename.

Add scheduledAt to schedule supported posts, and inspect per-account outcomes rather than assuming every destination succeeded. The Facebook integration page explains the Facebook side of the managed setup.

FAQ

Is Meta Graph API the same as Facebook Graph API?

They commonly refer to the same core Graph API. The newer name reflects Meta's broader product family, but it does not make Threads, Instagram and Facebook credentials interchangeable.

What is the latest Meta Graph API version?

As of November 17, 2026, Meta lists v27.0, released November 4, 2026. Check the official changelog before starting an integration or planning an upgrade.

Can I publish to a Facebook Page with an app access token?

Use the Page access token required by the publishing endpoint. An app token identifies your app; it does not grant permission to publish as a customer Page.

Does a long-lived Page token last forever?

No. Meta documents long-lived Page tokens without a scheduled expiration date, but they can still be invalidated. Your product needs a reconnect path and authorization-error handling.

Does Threads use the Facebook Graph API endpoint?

No. Threads has a separate API available at graph.threads.net and graph.threads.com. Use its own authorization flow, permissions and endpoint documentation.