
Meta Socials
- 1 installs
- 2 repo stars
- Updated June 11, 2026
- thedivergentai/divergent-skills
Reference for Meta social auth: choosing between Facebook Login and Instagram Login stacks and their token ladders across Graph API hosts.
About
Documents the two Meta login stacks, three API hosts, and the token exchange ladders for posting to Facebook Pages and Instagram. A developer uses it when integrating Facebook or Instagram Graph API auth and avoiding host/token mismatches.
- Decision matrix for Facebook Login vs Instagram Login stacks and hosts
- Token ladders for both paths plus system-user server-to-server tokens
Meta Socials by the numbers
- 1 all-time installs (skills.sh)
- Ranked #3,830 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/thedivergentai/divergent-skills --skill meta-socialsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 2 |
| Last updated | June 11, 2026 |
| Repository | thedivergentai/divergent-skills ↗ |
What it does
Reference for Meta social auth: choosing between Facebook Login and Instagram Login stacks and their token ladders across Graph API hosts.
Files
Meta Socials Auth Matrix
Two login stacks, three API hosts. Pick one stack per product — mixing hosts on one request breaks auth.
Login Stack Decision
| Stack | Host | IG account type | When to use |
|---|---|---|---|
| Facebook Login | graph.facebook.com | IG Business/Creator linked to FB Page | Page posting, IG via Page token, webhooks on Page |
| Instagram Login | graph.instagram.com | IG professional (no FB Page required) | Standalone IG apps, creator tools, IG-only scopes |
Rule: IG-with-FB-Login never calls graph.instagram.com. IG Login never uses Page tokens from /me/accounts.
API Hosts
| Host | Protocol | Used for |
|---|---|---|
graph.facebook.com | Graph API v21+ | Users, Pages, IG user via Page, debug_token, OAuth exchange |
graph.instagram.com | Instagram Graph subset | IG Login user/media/messaging endpoints only |
rupload.facebook.com | Resumable upload | Large video/Reels binary upload (ig-prefixed upload sessions) |
Version prefix: https://graph.facebook.com/v21.0/... — pin version in prod; unversioned tracks latest breaking changes.
Token Ladder (FB Login path)
1. Short-lived user token OAuth redirect / JS SDK
2. Long-lived user token GET /oauth/access_token?grant_type=fb_exchange_token
3. Page access token GET /me/accounts?fields=id,name,access_token
4. IG user id (via Page) GET /{page-id}?fields=instagram_business_account
5. Publish as Page/IG Use Page token on graph.facebook.comSystem User (Business Manager): server-to-server; generate token in BM → assign assets → never embed in client. Refresh via BM, not user OAuth.
Token Ladder (IG Login path)
1. Authorization code instagram.com/oauth/authorize
2. Short-lived IG token POST graph.instagram.com/oauth/access_token
3. Long-lived IG token GET graph.instagram.com/refresh_access_token
4. API calls Bearer on graph.instagram.com onlyIG Login tokens cannot access Page endpoints or graph.facebook.com IG nodes.
debug_token (always on failure)
curl -G "https://graph.facebook.com/debug_token" \
-d "input_token={TOKEN}" \
-d "access_token={APP_ID}|{APP_SECRET}"Check: is_valid, expires_at, scopes, granular_scopes, type (USER/PAGE), profile_id (Page id for Page tokens).
App Modes
| Mode | Tokens | Review |
|---|---|---|
| Development | App admins/testers only | No App Review for listed testers |
| Live | Any authorized user | Advanced Access + App Review per permission |
Expired tester grants → error 190 even when code is correct.
Common Auth Mistakes
| Mistake | Symptom |
|---|---|
User token on /{page-id}/feed | (#200) permission |
Page token on graph.instagram.com | Invalid OAuth |
IG Login token on /{ig-user-id}/media via facebook.com | Wrong host |
| Unexchanged short-lived token in cron | 190 after ~1–2 h |
Full OAuth fields: `full-docs/graph-api/get-started.md` (≤120 lines). IG Login: `full-docs/instagram-platform/instagram-api-with-instagram-login.md` (≤120 lines).
Rate Limits - Graph API
Source: https://developers.facebook.com/docs/graph-api/advanced/rate-limiting
Rate Limits
A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled. API requests made by a throttled user or app will fail.
All API requests are subject to rate limits. Graph API requests are subject to Platform Rate Limits, while Marketing API and Instagram Platform requests are subject to Business Use Case (BUC) Rate Limits.
Pages API requests are subject to either Platform or BUC Rate Limits, depending on the token used in the request; requests made with application or user access tokens are subject to Platform Rate Limits, while requests made with system user or page access tokens are subject to Business Use Case Rate Limits.
Real time rate limit usage statistics are described in headers that are included with most API responses once enough calls have been made to an endpoint. Platform Rate Limit usage statistics are also displayed in the App Dashboard. Once a rate limit is reached, any subsequent requests made by your app will fail and the API will return an error code until enough time has passed for the call count to drop below the limit.
If both Platform and Business Use Case rate limits can be applied to a request, BUC rate limits will be applied.
Batch Requests - Graph API
Source: https://developers.facebook.com/docs/graph-api/batch-requests
Batch Requests
Send a single HTTP request that contains multiple Facebook Graph API calls. Independent operations are processed in parallel while dependent operations are processed sequentially. Once all operations are complete, a consolidated response is passed back to you and the HTTP connection is closed.
The ordering of responses correspond with the ordering of operations in the request. You should process responses accordingly to determine which operations were successful and which should be retried in a subsequent operation.
Limitations
- Batch requests are limited to 50 requests per batch. Each call within the batch is counted separately for the purposes of calculating API call limits and resource limits. For example, a batch of 10 API calls will count as 10 calls and each call within the batch contributes to CPU resource limits in the same manner. Please see our Rate Limiting Guide for more information.
- Batch requests cannot include multiple Adsets under the same Campaign. Learn more about batching Marketing API requests.
Changelog - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog
Changelog
| The latest Graph API version is: | v25.0 |
The Graph API and Marketing API changelogs document versioned and out-of-cycle changes, respective to the API.
Related Changelogs
- Instagram Platform Changelog
- Marketing API Changelog
- Messenger Platform Changelog (includes Instagram Messaging)
- WhatsApp Business Platform Changelog
Versioned Changes
Versioned changes are changes introduced with the release of a new API version. Versioned changes typically apply to the newest version immediately and often will apply to other versions at a future date. The changelog accompanying each release indicates which changes apply to the current release and which changes apply to other versions.
Refer to our Upgrade Guide to learn how to upgrade to a new API version.
Out-Of-Cycle Changes
Out-of-cycle changes are changes introduced outside of our normal, versioned release schedule and typically do not apply to a specific version. Instead, out-of-cycle changes usually apply to all API versions immediately. Because of this, out-of-cycle changes are introduced infrequently.
Feb 3, 2020 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/2020-02-03-endpoint-deprecations
2020-02-03 Endpoint Deprecations
The following endpoints are deprecated for version 6.0+ of the Graph and Marketing APIs, and will be deprecated for all versions on May 5th, 2020.
Apr 30, 2019 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/4-30-2019-endpoint-deprecations
April 30th, 2019 — Endpoint Deprecations
The following endpoints will be deprecated on April 30th, 2019, for version 3.3+ of the Graph API and Marketing API. Apps that have used these endpoints in the last 90 days can continue using them with API versions 3.2 and lower until July 30th, 2019. Apps that have not used any of these endpoints in the last 90 days will be unable to use them starting on April 30th, 2019.
Out-Of-Cycle Changes - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/breaking-changes
Out-Of-Cycle Changes
Out-of-cycle changes are changes introduced outside of a standard versioned release. Typically these are changes that impact all API versions at the time of their introduction. These changes are documented below, according to their time of introduction.
2023 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/apr-10-23
2023 Out-Of-Cycle Changes
2023 out-of-cycle changes to Graph API and Marketing API.
Apr 24, 2018 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/apr-24-2018
April 24, 2018
Accompanying blog post: New Facebook Platform Product Changes and Policy Updates
Apr 9, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/apr-9-2021
Instagram Graph API
- The
statusfield on an IG Container now returns an error subcode if the container'serror_codefield value isERROR. - The IG Media Insights
video_viewsmetric now supports albums and will return the sum ofvideo_viewson all videos in the album instead of0.
Aug 14, 2019 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/aug-14-2019
August 14, 2019
Feb 1, 2012 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/feb-1-2012
February 1, 2012
Feb 7, 2018 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/feb-7-2018
February 7, 2018
Jan 30, 2018 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/jan-30-2018
January 30, 2018
Jul 2, 2014 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/jul-2-2014
July 2, 2014
Jun 11, 2011 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/jun-11-2011
June 11, 2011
Jun 18, 2018 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/jun-18-2018
June 18, 2018
In addition to the upcoming July 2018 deprecations we announced in February 2018, we will also deprecate action_link_click_destination in July of 2018.
We will no longer support action_carousel_card_id and action_carousel_card_name breakdowns for conversion metrics and for any calculated metrics in July of 2018. You can still get actions:link_click and unique_actions:link_click metrics grouped by these carousel card breakdowns and can still get conversion metrics without these carousel card breakdowns.
These are breaking changes which will impact all available versions of the API.
Mar 16, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/mar-16-2021
Instagram Graph API
IGTV media is now supported in v10.0+. This applies to all endpoints except those used for content publishing and webhooks. To support this change, new media_product_type and video_title fields have been added to the IG Media node. IGTV media must have been shared to Instagram at the time of publish (Post a Preview or Share Preview to Feed enabled) in order to be accessible via the API.
Mar 3, 2022 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/mar-3-2022
March 3, 2022
Out-of-cycle changes.
March 4, 2022 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/mar-4-2022
March 4, 2022
Out-of-cycle changes.
May 30, 2018 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/may-30-2018
May 30, 2018
May 31, 2022 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/may-31-2022
May 31, 2022
Out-of-cycle changes.
May 4, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/may-4-2021
Instagram Graph API
Made a minor change to how we calculate the `online_followers` metric on IG Users.
Nov 1, 2011 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/nov-1-2011
November 1, 2011
2023 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/nvc-2023
2023 Out-Of-Cycle Changes
2023 out-of-cycle changes to Graph API and Marketing API.
2025 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/nvc-2025
2025 Non-versioned Changes for Graph API
Non-versioned Graph API and Marketing API changes introduced in 2025 are documented below by the date in which they were introduced.
Oct 1, 2014 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/oct-1-2014
October 1, 2014
Sep 12, 2018 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/sep-12-2018
September 12, 2018
Sep 5, 2012 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/sep-5-2012
September 5, 2012
June 15, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/ooc-changes/jun-15-2021
Instagram Basic Display API
Off-Facebook Activity
Applies to all versions.
Users who clear their history or turn off future activity will invalidate their access tokens. In addition, users who have turned off future activity and who attempt to use the authorization window will be prompted to turn on future activity in order to use your app.
June 30, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/ooc-changes/jun-30-2021
Instagram Basic Display API
Private Account Access Tokens
Applies to all versions.
Long-lived access tokens for private Instagram accounts can now be refreshed. In addition, permissions granted to apps by app users with private accounts are now valid for 90 days.
October 13, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/ooc-changes/oct-13-2021
October 13, 2021
October 5, 2021 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/ooc-changes/oct-5-2021
October 5, 2021
Out-of-cycle changes.
v13.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version13.0
Version 13.0
v14.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version14.0
Version 14.0
v15.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version15.0
Version 15.0
v16.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version16.0
Version 16.0
v17.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version17.0
Version 17.0
This changelog was updated with the following changes:
- September 19, 2023: Added User Accounts entry
- December 19, 2023: Moved Offline Conversions API information from Marketing API to Graph API
- February 6, 2024: Added affected endpoints for Ad Strategies
v18.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version18.0
Version 18.0
v19.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version19.0
Version 19.0
v20.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version20.0
Version 20.0
v21.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version21.0
Version 21.0
v22.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version22.0
Version 22.0
v23.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version23.0
Version 23.0
v24.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version24.0
Version 24.0
v25.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version25.0
Version 25.0
v9.0 - Graph API
Source: https://developers.facebook.com/docs/graph-api/changelog/version9.0
Version 9.0
Graph API
Source: https://developers.facebook.com/docs/graph-api/common-scenarios
If you are a Facebook user and are having trouble signing into your account, visit our Help Center.
Graph API
| The latest version is: | v25.0 |
The Graph API is the primary way for apps to read and write to the Facebook social graph. All of our SDKs and products interact with the Graph API in some way, and our other APIs are extensions of the Graph API, so understanding how the Graph API works is crucial.
If you are unfamiliar with the Graph API, we recommend that you start with these documents:
1. Overview – Learn how the Graph API is structured, and how it works. 2. Get Started – Explore the Graph API endpoints using the Graph API Explorer tool and run your first request. 3. Batch requests – Learn how to send multiple API requests in one call. 4. Debug requests – Learn how to debug API requests. 5. Handle errors – Learn how to handle common errors encountered when using the Graph API. 6. Field expansion – Learn how to limit the number of objects returned in a request and perform nested requests. 7. Secure requests – Learn how to make secure requests to the Graph API. 8. Resumable Uploads API – Learn how to upload files to the Graph API.
Reference
Learn how to read our reference documents so you can easily find what you're looking for.
Graph Explorer Guide - Graph API
Source: https://developers.facebook.com/docs/graph-api/explorer
Graph API Explorer Guide
| The Graph API Explorer tool allows you to construct and perform Graph API queries and see their responses for any apps on which you have an admin, developer, or tester role. | Open the Graph API Explorer tool |
Common Uses
- Quickly generate access tokens
- Get code samples for your queries
- Generate debug information to include in support requests
- Test API queries with your production app's settings including permissions, features, and settings for your use cases
- Test API queries with your test or development app using permission and features on test users or test data
Get Started - Graph API
Source: https://developers.facebook.com/docs/graph-api/get-started
Get Started
This guide explains how to get started with receiving data from the Facebook Social Graph.
Debug Requests - Graph API
Source: https://developers.facebook.com/docs/graph-api/guides/debugging
Debug Requests
Graph API Debug Mode
When Debug Mode is enabled, Graph API response may contain additional fields that explain potential issues with the request.
To enable debug mode, use the debug query string parameter. For example:
cURLAndroid SDKObjective-CJava SDKPHP SDK
curl -i -X GET \
"https://graph.facebook.com/{user-id}
?fields=friends
&debug=all
&access_token={your-access-token}"If user_friends permission was not granted, this produces the following response:
{
"data": [
],
"__debug__": {
"messages": [
{
"message": "Field friends is only accessible on User object, if user_friends permission is granted by the user",
"type": "warning"
},
{
"link": "https://developers.facebook.com/docs/apps/changelog#v2_0",
"message": "Only friends who have installed the app are returned in versions greater or equal to v2.0.",
"type": "info"
}
]
}
}The debug parameter value can be set to "all" or to a minimal requested severity level that corresponds to type of the message:
Debug Param Value | What Will Be Returned || all | All available debug messages. | | info | Debug messages with type info and warning. | | warning | Only debug messages with type warning. |
Debug information, when available, is returned as a JSON object under the __debug__ key in the messages array. Every element of this array is a JSON object that contains the following fields:
Field | Datatype | Description || message | String | The message. | | type | String | The message severity. | | link | String | [Optional] A URL pointing to related information. |
You can also use Debug Mode with Graph API Explorer.
Determining Version used by API Requests
When you're building an app and making Graph API requests, you might find it useful to determine what API version you're getting a response from. For example, if you're making calls without a version specified, the API version that responds may not be known to you.
The Graph API supplies a request header with any response called facebook-api-version that indicates the exact version of the API that generated the response. For example, a Graph API call that generates a request with v2.0 produces the following HTTP header:
facebook-api-version:v2.0This facebook-api-version header allows you to determine whether API calls are being returned from the version that you expect.
Debug Info for Reporting Bugs
When reporting a bug in the Graph API, we include some additional request headers to send with your bug report to help us pinpoint and reproduce your issue. These request headers are X-FB-Debug, x-fb-rev, and X-FB-Trace-ID.
Handle Errors - Graph API
Source: https://developers.facebook.com/docs/graph-api/guides/error-handling
Handling Errors
Requests made to our APIs can result in several different error responses. The following document describes the recovery tactics and provides a list of error values with a map to the most common recovery tactic to use.
Graph Explorer Guide - Graph API
Source: https://developers.facebook.com/docs/graph-api/guides/explorer
Graph API Explorer Guide
| The Graph API Explorer tool allows you to construct and perform Graph API queries and see their responses for any apps on which you have an admin, developer, or tester role. | Open the Graph API Explorer tool |
Common Uses
- Quickly generate access tokens
- Get code samples for your queries
- Generate debug information to include in support requests
- Test API queries with your production app's settings including permissions, features, and settings for your use cases
- Test API queries with your test or development app using permission and features on test users or test data
Field Expansion - Graph API
Source: https://developers.facebook.com/docs/graph-api/guides/field-expansion
Field Expansion
If you test the GET /me/feed query in the Graph API Explorer, you will noticed that the request returned many objects and paginated the results. This is common for most edges.
Example Response
{
"data": [
{
"created_time": "2021-04-30T01:37:07+0000",
"message": "I'll never forget it has a head.",
"id": "10211998223264288_10222340566616408"
},
...
{
"created_time": "2021-04-25T22:29:26+0000",
"message": "Things you hear at my house: \"I accidentally made a cake.\"",
"id": "10211998223264288_10222314489524497"
}
],
"paging": {
"previous": "https://graph.facebook.com/<API_VERSION>/<USER_ID>/feed?access_token=<ACCESS-TOKEN>&pretty=0&__previous=1&since=1627322627&until&__paging_token=enc_AdB2fX...",
"next": "https://graph.facebook.com/<API_VERSION>/<USER_ID>/feed?access_token=<ACCESS-TOKEN>&pretty=0&until=1619389766&since&__paging_token=enc_AdAamX...&__previous"
}
}Field expansion allows you not only to limit the number of objects returned but also perform nested requests.
Secure Requests - Graph API
Source: https://developers.facebook.com/docs/graph-api/guides/secure-requests
Secure Graph API Calls
Almost every Graph API call requires an access token. Malicious developers can steal access tokens and use them to send spam from your app. Meta has automated systems to detect this, but you can help us secure your app. This document covers some of the ways you can improve security in your app.
Upload a File or Video - Video API
Source: https://developers.facebook.com/docs/graph-api/guides/upload
Upload a file
The Resumable Upload API allows you to upload large files to Meta's social graph and resume interrupted upload sessions without having to start over. Once you have uploaded your file, you can publish it.
References for endpoints that support uploaded file handles will indicate if the endpoints support handles returned by the Resumable Upload API.
Before you start
This guide assumes you have read the Graph API Overview and the Meta Development guides and performed the necessary actions needed to develop with Meta.
You will need:
- A Meta app ID
- A file in one of the following formats:
pdfjpegjpgpngmp4- A User access token
Versioning - Graph API
Source: https://developers.facebook.com/docs/graph-api/guides/versioning
Platform Versioning
Facebook's Platform supports versioning so that app builders can roll out changes over time. This document explains how SDKs and APIs affected by versions and how to use those versions in your requests.
Batch Requests - Graph API
Source: https://developers.facebook.com/docs/graph-api/making-multiple-requests
Batch Requests
Send a single HTTP request that contains multiple Facebook Graph API calls. Independent operations are processed in parallel while dependent operations are processed sequentially. Once all operations are complete, a consolidated response is passed back to you and the HTTP connection is closed.
The ordering of responses correspond with the ordering of operations in the request. You should process responses accordingly to determine which operations were successful and which should be retried in a subsequent operation.
Limitations
- Batch requests are limited to 50 requests per batch. Each call within the batch is counted separately for the purposes of calculating API call limits and resource limits. For example, a batch of 10 API calls will count as 10 calls and each call within the batch contributes to CPU resource limits in the same manner. Please see our Rate Limiting Guide for more information.
- Batch requests cannot include multiple Adsets under the same Campaign. Learn more about batching Marketing API requests.
Overview - Graph API
Source: https://developers.facebook.com/docs/graph-api/overview
Graph API overview
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields. Typically you use nodes to get data about a specific object, use edges to get collections of objects on a single object, and use fields to get data about a single object or each object in a collection. Throughout our documentation, we may refer to both a node and edge as an "endpoint". For example, "send a GET request to the User endpoint".
Access Levels - App Development with Meta
Source: https://developers.facebook.com/docs/graph-api/overview/access-levels
Access Levels
This document is only applicable to apps created using an App Type.
[Advanced Access](graph-api/overview/access-levels.md#advanced-access) now requires Business Verification
As of February 1, 2023 apps requesting advanced access for permissions may have to be connected to a verified business. See this blog post for more information.
Access levels are an additional layer of Graph API authorization that apply to permissions and features for Business, Consumer, and Gaming apps.
There are two access levels: Standard and Advanced. Apps can request permissions with Advanced Access from any app user, and features with Advanced Access are active for all app users. Permissions with Standard Access, however, can only be requested from app users who have a role on the requesting app, and features with Standard Access are only active for app users who have a role on the app.
If your app will only be used by people who have a role on it, the permissions and features your app requires will only need Standard Access. If your app will be used by people who do not have a role on it, the permissions and features that your app requires will need Advanced Access.
All Business, Consumer, and Gaming apps are automatically approved for Standard Access for all permissions and features. Advanced Access, however, must be approved on an individual permission and feature basis through the App Review process.
Rate Limits - Graph API
Source: https://developers.facebook.com/docs/graph-api/overview/rate-limiting
Rate Limits
A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled. API requests made by a throttled user or app will fail.
All API requests are subject to rate limits. Graph API requests are subject to Platform Rate Limits, while Marketing API and Instagram Platform requests are subject to Business Use Case (BUC) Rate Limits.
Pages API requests are subject to either Platform or BUC Rate Limits, depending on the token used in the request; requests made with application or user access tokens are subject to Platform Rate Limits, while requests made with system user or page access tokens are subject to Business Use Case Rate Limits.
Real time rate limit usage statistics are described in headers that are included with most API responses once enough calls have been made to an endpoint. Platform Rate Limit usage statistics are also displayed in the App Dashboard. Once a rate limit is reached, any subsequent requests made by your app will fail and the API will return an error code until enough time has passed for the call count to drop below the limit.
If both Platform and Business Use Case rate limits can be applied to a request, BUC rate limits will be applied.
Overview - Graph API
Source: https://developers.facebook.com/docs/graph-api/quickstart
Graph API overview
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields. Typically you use nodes to get data about a specific object, use edges to get collections of objects on a single object, and use fields to get data about a single object or each object in a collection. Throughout our documentation, we may refer to both a node and edge as an "endpoint". For example, "send a GET request to the User endpoint".
Graph API Reference
Source: https://developers.facebook.com/docs/graph-api/reference
Graph API Version
Graph API Reference v25.0: Ad Set
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign
Graph API Version
Ad Campaign Activities
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/activities
Graph API Version
Graph API Reference v25.0: Ad Set Ad Studies
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/ad_studies
Graph API Version
Ad Set Ad Creatives
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/adcreatives
Graph API Version
Graph API Reference v25.0: Ad Set Adrules Governed
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/adrules_governed
Graph API Version
Graph API Reference v25.0: Ad Set Ads
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/ads
Graph API Version
Graph API Reference v25.0: Ad Set Asyncadrequests
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/asyncadrequests
Graph API Version
Graph API Reference v25.0: Ad Set Copies
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/copies
Graph API Version
Ad Set Estimated Daily Results
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/delivery_estimate
Graph API Version
Graph API Reference v25.0: Ad Set Message Delivery Estimate
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/message_delivery_estimate
Graph API Version
Graph API Reference v25.0: Ad Set Targetingsentencelines
Source: https://developers.facebook.com/docs/graph-api/reference/ad-campaign/targetingsentencelines
Graph API Version
Graph API Reference v25.0: Ad
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup
Graph API Version
Ad Creative
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup/adcreatives
Ad Creative
Updated: Jun 28, 2019
Contains content for an ad, including images, videos and so on.
Reading
Example
Select language
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK
---
GET /v25.0/{ad-id}/adcreatives HTTP/1.1
Host: graph.facebook.comTry it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
This endpoint doesn't have any parameters.
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {}
}data
A list of AdCreative nodes.
paging
For more details about pagination, see the Graph API guide.
Error Codes
| Error Code | Description |
|---|---|
| 100 | Invalid parameter |
| 80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting#ads-management. |
| 190 | Invalid OAuth 2.0 Access Token |
| 104 | Incorrect signature |
| 2500 | Error parsing graph query |
Creating
You can't perform this operation on this endpoint.
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Ad Adrules Governed
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup/adrules_governed
Ad Adrules Governed
Updated: May 21, 2019
Reading
Ad rules that govern this ad - by default, this only returns rules that either directly mention the ad by id or indirectly through the set entity\_type
Example
Select language
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK
---
GET /v25.0/{ad-id}/adrules_governed HTTP/1.1
Host: graph.facebook.comTry it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
| Parameter | Description |
|---|---|
pass_evaluation boolean | If set, this will further filter the rules to only include those for which the ad would evaluate to the boolean value of this param |
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {}
}data
A list of AdRule nodes.
paging
For more details about pagination, see the Graph API guide.
Error Codes
| Error Code | Description |
|---|---|
| 104 | Incorrect signature |
Creating
You can't perform this operation on this endpoint.
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Ad Copies
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup/copies
Ad Copies
Updated: May 15, 2025
The Marketing API has it is own rate limiting logic. If you are encountering errors mentioning a reached limit, see Rate Limiting.
Reading
The copies of this ad.
Example
Select language
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK
---
GET /v25.0/{ad-id}/copies HTTP/1.1
Host: graph.facebook.comTry it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
| Parameter | Description |
|---|---|
date_preset enum{today, yesterday, this\_month, last\_month, this\_quarter, maximum, data\_maximum, last\_3d, last\_7d, last\_14d, last\_28d, last\_30d, last\_90d, last\_week\_mon\_sun, last\_week\_sun\_sat, last\_quarter, last\_year, this\_week\_mon\_today, this\_week\_sun\_today, this\_year} | Preset date range used to aggregate insights metrics |
effective_status list<string> | Filter Ads by effective status |
time_range {‘since’:YYYY-MM-DD,’until’:YYYY-MM-DD} | Time range used to aggregate insights metrics --- since datetime A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day. until datetime A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day. Show child parameters |
updated_since integer | Filter ads by updated since time |
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {},
"summary": {}
}data
A list of Ad nodes.
paging
For more details about pagination, see the Graph API guide.
summary
Aggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=\_\_type\_\_).
| Field | Description |
|---|---|
insights Edge<AdsInsights> | Analytics summary for all objects |
total_count unsigned int32 | Total number of objects default |
Error Codes
| Error Code | Description |
|---|---|
| 104 | Incorrect signature |
Creating
Targeting DSA Regulated Locations (European Union)
To copy an ad set targeted in the European Union's Digital Services Act (DSA) regulated locations, please set the payor/beneficiary information first. Otherwise the copying request may respond with one of the following errors:
Payor missing error
{
"error": {
"message": "Invalid parameter",
"type": "FacebookApiException",
"code": 100,
"error_data": "{\"blame_field_specs\":[[\"dsa_payor\"]]}",
"error_subcode": 3858079,
"is_transient": false,
"error_user_title": "No payor provided in DSA regulated region",
"error_user_msg": "The DSA requires ads to provide payor information in regulated regions. Updating/creating ad needs to provide payor of the ad.",
"fbtrace_id": "fbtrace_id"
},
"__fb_trace_id__": "fbtrace_id",
"__www_request_id__": "request_id"
}Beneficiary missing error
{
"error": {
"message": "Invalid parameter",
"type": "FacebookApiException",
"code": 100,
"error_data": "{\"blame_field_specs\":[[\"dsa_beneficiary\"]]}",
"error_subcode": 3858081,
"is_transient": false,
"error_user_title": "No payor/beneficiary provided in DSA regulated location",
"error_user_msg": "The DSA requires ads to provide beneficiary information in regulated regions. Updating/creating ad needs to provide beneficiary of the ad.",
"fbtrace_id": "fbtrace_id"
},
"__fb_trace_id__": "fbtrace_id",
"__www_request_id__": "request_id"
}Creative Parameters
When making a copy of an ad, you may overwrite fields on the creative spec by using the creative_parameters argument. Currently, this supports overwriting the API spec at the top-level parameter level, i.e. when creative_parameter supplied, the new creative will use all of the newly provided value for any valid parameter. Otherwise, the values from the source ad’s creative will be used.
Find out more about the available fields in our documentation for ad creatives.
Creative spec overwrite example
Original creative
{
"body": "original ad body",
"degrees_of_freedom_spec": {
"creative_features_spec": {
"text_optimizations": {
"enroll_status": "OPT_IN"
},
"inline_comment": {
"enroll_status": "OPT_IN"
}
}
},
"image_url": "https://example.com/my-image-url",
"name": "original ad name",
"title": "original ad body"
}Supplied input for copy operation
{
"degrees_of_freedom_spec": {
"creative_features_spec": {
"text_optimizations": {
"enroll_status": "OPT_IN"
},
"image_touchups": {
"enroll_status": "OPT_IN"
}
}
},
"image_url": "https://example.com/my–other-image-url",
"url_tags": "source=fb_ad"
}Resulting creative
{
"body": "original ad body",
"degrees_of_freedom_spec": {
"creative_features_spec": {
"text_optimizations": {
"enroll_status": "OPT_IN"
},
"image_touchups": {
"enroll_status": "OPT_IN"
}
}
},
"image_url": "https://example.com/my–other-image-url",
"name": "original ad name",
"title": "original ad body",
"url_tags": "source=fb_ad"
}Note the following:
body,name,titleare not supplied in the input spec, so they are carried over from the originalurl_tagsis defined in the input spec, but not in the original spec. It is defined in the new specimage_urlis defined in both. The input value is used in the new spec.degrees_of_freedom_specdefines opt-ins fortext_optimizationsandinline_commentin the original spec, and onlytext_optimizationsandimage_touchupsin the new spec. The inputdegrees_of_freedom_speccompletely overrides the old one, and previously defined sub-fields are not used.
/{ad\_id}/copies
You can make a POST request to copies edge from the following paths:
When posting to this edge, an Ad will be created.
Parameters
| Parameter | Description |
|---|---|
adset_id numeric string or integer | Single ID of an adset object to make the parent of the copy. Ignore if you want to keep the copy under the original adset parent. |
creative_parameters AdCreative | Creative inputs which will be used to construct the creative in the new ad. Overwrites happen at the top level. If no input is provided, the new ad will be created with an identical ad creative. If some input is provided, those parameters will be assigned to the ad creative created by this API call. Accepts all ad creative parameters as specified in /documentation/ads-commerce/marketing-api/reference/ad-account/adcreatives supports emoji |
rename_options JSON or object-like arrays | Rename options --- rename_strategy enum {DEEP\_RENAME, ONLY\_TOP\_LEVEL\_RENAME, NO\_RENAME} Default value: ONLY_TOP_LEVEL_RENAME DEEP_RENAME: will change this object's name and children's names in the copied object. ONLY_TOP_LEVEL_RENAME: will change the this object's name but won't change the children's name in the copied object. NO_RENAME: will change no name in the copied object rename_prefix string A prefix to copy names. Defaults to null if not provided. rename_suffix string A suffix to copy names. Defaults to null if not provided and appends a localized string of - Copy based on the ad account locale. Show child parameters |
status_option enum {ACTIVE, PAUSED, INHERITED\_FROM\_SOURCE} | Default value: PAUSED ACTIVE: the copied ad will have active status. PAUSED: the copied ad will have paused status. INHERITED_FROM_SOURCE: the copied ad will have the parent status. |
Return Type
This endpoint supports read-after-write and will read the node represented by copied\_ad\_id in the return type.
Struct {
copied_ad_id: numeric string,
}Error Codes
| Error Code | Description |
|---|---|
| 100 | Invalid parameter |
| 200 | Permissions error |
---
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Ad Leads
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup/leads
Ad Leads
Updated: Nov 4, 2024
Any leads associated with with a Lead Ad. Since these leads belong to a business' Page, not the ad itself, you need to be a Page Admin to access these. Alternately you can have permissions granted to you by the Page Admin. See Retrieving Leads.
Reading
GraphAdgroupLeadsEdge
Example
Select language
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDKcURL
---
GET /v25.0/{adgroup-id}/leads HTTP/1.1
Host: graph.facebook.comTry it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
This endpoint doesn't have any parameters.
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {}
}data
A list of UserLeadGenInfo nodes.
paging
For more details about pagination, see the Graph API guide.
Error Codes
| Error Code | Description |
|---|---|
| 80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting#ads-management. |
| 100 | Invalid parameter |
| 190 | Invalid OAuth 2.0 Access Token |
| 104 | Incorrect signature |
Creating
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Ad Preview
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup/previews
Ad Preview
Updated: Apr 6, 2026
Preview your ad.
Limitations
Only certain combinations of creatives and ad_format are supported:
- Link ad not connected to a page:
RIGHT_COLUMN_STANDARD - Page like ad:
RIGHT_COLUMN_STANDARD,DESKTOP_FEED_STANDARD,MOBILE_FEED_STANDARD - Event ad:
RIGHT_COLUMN_STANDARD - Page like ad:
RIGHT_COLUMN_STANDARD - Page post ad:
RIGHT_COLUMN_STANDARD,DESKTOP_FEED_STANDARD,MOBILE_FEED_STANDARD,INSTAGRAM_STANDARD - Desktop app ad:
DESKTOP_FEED_STANDARD - Mobile app install:
MOBILE_FEED_STANDARD,INSTAGRAM_STANDARD,MOBILE_BANNER,MOBILE_INTERSTITIAL,FACEBOOK_STORY_MOBILE
If you use Page Post with a link to an app on the Google Play Store or on the Apple App Store, we override and import these fields:
- the
nameparameter of the Page Post will be overwritten with the name of the app from the Play Store/App Store. - the thumbnail icon of the app associated with the Page Post will be imported from the Play Store/App Store.
FACEBOOK_STORY_MOBILE only supports single video and single image.
Reading
Preview of the ad.
Example
Select language
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK
---
GET /v25.0/{ad-id}/previews HTTP/1.1
Host: graph.facebook.comTry it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
| Parameter | Description |
|---|---|
ad_format enum{AUDIENCE\_NETWORK\_INSTREAM\_VIDEO, AUDIENCE\_NETWORK\_INSTREAM\_VIDEO\_MOBILE, AUDIENCE\_NETWORK\_OUTSTREAM\_VIDEO, AUDIENCE\_NETWORK\_REWARDED\_VIDEO, BIZ\_DISCO\_FEED\_MOBILE, DESKTOP\_FEED\_STANDARD, FACEBOOK\_IFU\_REELS\_MOBILE, FACEBOOK\_PROFILE\_FEED\_DESKTOP, FACEBOOK\_PROFILE\_FEED\_MOBILE, FACEBOOK\_PROFILE\_REELS\_MOBILE, FACEBOOK\_REELS\_BANNER, FACEBOOK\_REELS\_BANNER\_DESKTOP, FACEBOOK\_REELS\_BANNER\_FEED\_ANDROID, FACEBOOK\_REELS\_BANNER\_FEED\_ANDROID\_LARGE, FACEBOOK\_REELS\_BANNER\_FULLSCREEN\_IOS, FACEBOOK\_REELS\_BANNER\_FULLSCREEN\_MOBILE, FACEBOOK\_REELS\_MOBILE, FACEBOOK\_REELS\_POSTLOOP, FACEBOOK\_REELS\_POSTLOOP\_FEED, FACEBOOK\_REELS\_SIMILAR\_PRODUCTS\_MOBILE, FACEBOOK\_REELS\_STICKER, FACEBOOK\_STORY\_MOBILE, FACEBOOK\_STORY\_STICKER\_MOBILE, INSTAGRAM\_EXPLORE\_CONTEXTUAL, INSTAGRAM\_EXPLORE\_GRID\_HOME, INSTAGRAM\_EXPLORE\_IMMERSIVE, INSTAGRAM\_FEED\_WEB, INSTAGRAM\_FEED\_WEB\_M\_SITE, INSTAGRAM\_LEAD\_GEN\_MULTI\_SUBMIT\_ADS, INSTAGRAM\_PROFILE\_FEED, INSTAGRAM\_PROFILE\_REELS, INSTAGRAM\_REELS, INSTAGRAM\_REELS\_OVERLAY, INSTAGRAM\_REELS\_WEB, INSTAGRAM\_REELS\_WEB\_M\_SITE, INSTAGRAM\_SEARCH\_CHAIN, INSTAGRAM\_SEARCH\_GRID, INSTAGRAM\_STANDARD, INSTAGRAM\_STORY, INSTAGRAM\_STORY\_EFFECT\_TRAY, INSTAGRAM\_STORY\_WEB, INSTAGRAM\_STORY\_WEB\_M\_SITE, INSTANT\_ARTICLE\_RECIRCULATION\_AD, INSTANT\_ARTICLE\_STANDARD, INSTREAM\_BANNER\_DESKTOP, INSTREAM\_BANNER\_FEED\_IOS, INSTREAM\_BANNER\_FULLSCREEN\_IOS, INSTREAM\_BANNER\_FULLSCREEN\_MOBILE, INSTREAM\_BANNER\_IMMERSIVE\_MOBILE, INSTREAM\_BANNER\_MOBILE, INSTREAM\_VIDEO\_DESKTOP, INSTREAM\_VIDEO\_FULLSCREEN\_IOS, INSTREAM\_VIDEO\_FULLSCREEN\_MOBILE, INSTREAM\_VIDEO\_IMAGE, INSTREAM\_VIDEO\_IMMERSIVE\_MOBILE, INSTREAM\_VIDEO\_MOBILE, JOB\_BROWSER\_DESKTOP, JOB\_BROWSER\_MOBILE, MARKETPLACE\_MOBILE, MESSENGER\_MOBILE\_INBOX\_MEDIA, MESSENGER\_MOBILE\_STORY\_MEDIA, MOBILE\_BANNER, MOBILE\_FEED\_BASIC, MOBILE\_FEED\_STANDARD, MOBILE\_FULLWIDTH, MOBILE\_INTERSTITIAL, MOBILE\_MEDIUM\_RECTANGLE, MOBILE\_NATIVE, RIGHT\_COLUMN\_STANDARD, SUGGESTED\_VIDEO\_DESKTOP, SUGGESTED\_VIDEO\_FULLSCREEN\_MOBILE, SUGGESTED\_VIDEO\_IMMERSIVE\_MOBILE, SUGGESTED\_VIDEO\_MOBILE, WATCH\_FEED\_HOME, WATCH\_FEED\_MOBILE, WHATSAPP\_STATUS\_MEDIA} | Use this to select what placement on Facebook the ad preview should be for. The API returns an iframe, which is only valid for 24 hours. Ad formats for Facebook: DESKTOP_FEED_STANDARD, FACEBOOK_STORY_MOBILE, INSTANT_ARTICLE_STANDARD, INSTREAM_VIDEO_DESKTOP, INSTREAM_VIDEO_MOBILE, MARKETPLACE_DESKTOP,MARKETPLACE_MOBILE, MOBILE_FEED_BASIC, MOBILE_FEED_STANDARD, RIGHT_COLUMN_STANDARD, SUGGESTED_VIDEO_DESKTOP, SUGGESTED_VIDEO_MOBILE, WATCH_FEED_MOBILE, FACEBOOK_REELS_BANNER, FACEBOOK_REELS_BANNER_DESKTOP, FACEBOOK_REELS_MOBILE, FACEBOOK_REELS_POSTLOOP, FACEBOOK_REELS_STICKER, FACEBOOK_STORY_STICKER_MOBILE, WATCH_FEED_HOME. Ad formats for Instagram: INSTAGRAM_STANDARD, INSTAGRAM_STORY, INSTAGRAM_EXPLORE_CONTEXTUAL, INSTAGRAM_EXPLORE_IMMERSIVE, INSTAGRAM_EXPLORE_GRID_HOME, INSTAGRAM_FEED_WEB, INSTAGRAM_FEED_WEB_M_SITE, INSTAGRAM_PROFILE_FEED, INSTAGRAM_REELS, INSTAGRAM_REELS_OVERLAY, INSTAGRAM_SEARCH_CHAIN, INSTAGRAM_SEARCH_GRID, INSTAGRAM_STORY_CAMERA_TRAY, INSTAGRAM_STORY_WEB, INSTAGRAM_STORY_WEB_M_SITE. Learn more about Instagram placement options. Ad formats for Messenger: MESSENGER_MOBILE_INBOX_MEDIA, MESSENGER_MOBILE_STORY_MEDIA. Ad formats for Audience Network: AUDIENCE_NETWORK_INSTREAM_VIDEO, AUDIENCE_NETWORK_INSTREAM_VIDEO_MOBILE, AUDIENCE_NETWORK_OUTSTREAM_VIDEO, AUDIENCE_NETWORK_REWARDED_VIDEO, MOBILE_BANNER, MOBILE_FULLWIDTH, MOBILE_INTERSTITIAL, MOBILE_MEDIUM_RECTANGLE, MOBILE_NATIVE. required |
dynamic_asset_label string | Provide a label for rendering specific variation of an asset customization ad |
dynamic_creative_spec Object | Dynamic creative spec for dynamic ads. supports emoji |
dynamic_customization Object | For dynamic ads in multiple languages, specify the customization to be applied to the ad |
end_date datetime | Provide an end date for trip's tag parameters in the creative. See Template Tags |
height int64 | Custom height of the resulting iframe, recommended at least 280 x 280 for the large right hand size height. Note: the parameter affects only the size of the iframe containing the preview object. It has no affect on the actual size of the previewed ad. |
place_page_id Page ID | Place page ID to use when rendering a dynamic local ad preview |
post Object | Specs for a page post. This field is used when the creative field contains only a Page id as object_id in it. Not supported for ad_format = RIGHT_COLUMN_STANDARD --- link URL Destination URL of the ad required message UTF-8 string Post message supports emoji picture URL Image URL name UTF-8 encoded string Post name caption UTF-8 encoded string Post caption description UTF-8 encoded string Post description call_to_action Object Call to action supports emoji --- type enum{BOOK\_TRAVEL, CONTACT\_US, DONATE, DONATE\_NOW, DOWNLOAD, GET\_DIRECTIONS, GO\_LIVE, INTERESTED, LEARN\_MORE, SEE\_DETAILS, LIKE\_PAGE, MESSAGE\_PAGE, RAISE\_MONEY, SAVE, SEND\_TIP, SHOP\_NOW, SIGN\_UP, VIEW\_INSTAGRAM\_PROFILE, INSTAGRAM\_MESSAGE, LOYALTY\_LEARN\_MORE, PURCHASE\_GIFT\_CARDS, PAY\_TO\_ACCESS, SEE\_MORE, TRY\_IN\_CAMERA, WHATSAPP\_LINK, GET\_IN\_TOUCH, TRY\_NOW, ASK\_A\_QUESTION, START\_A\_CHAT, CHAT\_NOW, ASK\_US, CHAT\_WITH\_US, BOOK\_NOW, CHECK\_AVAILABILITY, ORDER\_NOW, WHATSAPP\_MESSAGE, GET\_MOBILE\_APP, INSTALL\_MOBILE\_APP, USE\_MOBILE\_APP, INSTALL\_APP, USE\_APP, PLAY\_GAME, TRY\_DEMO, WATCH\_VIDEO, WATCH\_MORE, OPEN\_LINK, NO\_BUTTON, LISTEN\_MUSIC, MOBILE\_DOWNLOAD, GET\_OFFER, GET\_OFFER\_VIEW, BUY\_NOW, BUY\_TICKETS, UPDATE\_APP, BET\_NOW, ADD\_TO\_CART, SELL\_NOW, GET\_SHOWTIMES, LISTEN\_NOW, GET\_EVENT\_TICKETS, REMIND\_ME, SEARCH\_MORE, PRE\_REGISTER, SWIPE\_UP\_PRODUCT, SWIPE\_UP\_SHOP, PLAY\_GAME\_ON\_FACEBOOK, VISIT\_WORLD, OPEN\_INSTANT\_APP, JOIN\_GROUP, GET\_PROMOTIONS, SEND\_UPDATES, INQUIRE\_NOW, VISIT\_PROFILE, CHAT\_ON\_WHATSAPP, EXPLORE\_MORE, CONFIRM, JOIN\_CHANNEL, MAKE\_AN\_APPOINTMENT, ASK\_ABOUT\_SERVICES, BOOK\_A\_CONSULTATION, GET\_A\_QUOTE, BUY\_VIA\_MESSAGE, ASK\_FOR\_MORE\_INFO, VIEW\_PRODUCT, VIEW\_CHANNEL, WATCH\_LIVE\_VIDEO, JOIN\_LIVE\_VIDEO, IMAGINE, CALL, MISSED\_CALL, CALL\_NOW, CALL\_ME, APPLY\_NOW, BUY, GET\_QUOTE, SUBSCRIBE, RECORD\_NOW, VOTE\_NOW, GIVE\_FREE\_RIDES, REGISTER\_NOW, OPEN\_MESSENGER\_EXT, EVENT\_RSVP, CIVIC\_ACTION, SEND\_INVITES, REFER\_FRIENDS, REQUEST\_TIME, SEE\_MENU, SEARCH, TRY\_IT, TRY\_ON, LINK\_CARD, DIAL\_CODE, FIND\_YOUR\_GROUPS, START\_ORDER} The type of the action. Not all types can be used for all ads. Check Ads Product Guide to see which type can be used for based on the objective of your campaign. required value Object Default value: Vec JSON containing the call to action data. supports emoji --- android_url string ios_url string link URL app_link string page numeric string or integer link_format enum {VIDEO\_LEAD, VIDEO\_LPP, VIDEO\_NEKO, VIDEO\_NON\_LINK, VIDEO\_SHOP, WHATSAPP\_CATALOG\_ATTACHMENT} application numeric string or integer link_title string supports emoji link_description string supports emoji link_caption string product_link string get_movie_showtimes boolean sponsorship Object --- link URL image URL Show child parameters video_annotation Object --- annotations list<Object> --- start_time_in_sec int64 end_time_in_sec int64 link URL link_title string link_description string link_caption string image_url URL Show child parameters header_color string logo_url URL post_click_cta_title string post_click_description_title string Show child parameters offer_id numeric string or integer offer_view_id numeric string or integer advanced_data Object --- offer_id numeric string or integer Show child parameters lead_gen_form_id numeric string or integer referral_id numeric string or integer search_dialog_id numeric string or integer fundraiser_campaign_id numeric string or integer event_id numeric string or integer event_tour_id numeric string or integer app_destination enum {MESSENGER, MESSENGER\_EXTENSIONS, MESSENGER\_GAMES, LINK\_CARD, MARKETPLACE, WHATSAPP, INSTAGRAM\_DIRECT, INSTAGRAM\_LIVE\_VIDEO, FACEBOOK\_LIVE\_VIDEO} app_destination_page_id numeric string or integer is_canvas_video_transition_enabled boolean whatsapp_number string preinput_text string customized_message_page_cta_text string external_offer_provider_id numeric string or integer origins enum {COMPOSER, CAMERA} object_store_urls array<string> facebook_login_spec Object --- facebook_login_app_id numeric string or integer offer_type enum {NO\_OFFER, PERCENTAGE\_BASED, AMOUNT\_BASED} offer_pct_call_to_action enum {TEN} offer_amt_call_to_action enum {TEN} Show child parameters product_id numeric string or integer group_id numeric string or integer channel_id string land_on_whatsapp_catalog enum{1, 2} land_on_whatsapp_profile string Show child parameters Show child parameters photo_replacement_preview_fbid Show child parameters |
product_item_ids list<string> | A list of Product Item IDs to use when rendering a dynamic ad preview. |
start_date datetime | Provide a start date for trip.\* parameters in the creative |
width int64 | Custom width of the resulting iframe, recommended at least 280 x 280 for the large right hand size widths. Note: the parameter affects only the size of the iframe containing the preview object. It has no affect on the actual size of the previewed ad. |
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {}
}data
A list of AdPreview nodes.
paging
For more details about pagination, see the Graph API guide.
Error Codes
| Error Code | Description |
|---|---|
| 100 | Invalid parameter |
| 80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting#ads-management. |
| 190 | Invalid OAuth 2.0 Access Token |
| 104 | Incorrect signature |
Creating
You can't perform this operation on this endpoint.
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Ad Targeting Sentence Lines
Source: https://developers.facebook.com/docs/graph-api/reference/adgroup/targetingsentencelines
Ad Targeting Sentence Lines
Updated: Jun 28, 2019
Reading
Example
Select language
HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK
---
GET /v25.0/{ad-id}/targetingsentencelines HTTP/1.1
Host: graph.facebook.comTry it in Graph API Explorer
If you want to learn how to use the Graph API, read our Using Graph API guide
Parameters
This endpoint doesn't have any parameters.
Fields
Reading from this edge will return a JSON formatted result:
{
"data": [],
"paging": {}
}data
A list of TargetingSentenceLine nodes.
paging
For more details about pagination, see the Graph API guide.
Error Codes
| Error Code | Description |
|---|---|
| 100 | Invalid parameter |
Creating
You can't perform this operation on this endpoint.
Updating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Graph API Reference v25.0: Ads Archive
Source: https://developers.facebook.com/docs/graph-api/reference/ads_archive
Graph API Version
Graph API Reference v25.0: Age Range
Source: https://developers.facebook.com/docs/graph-api/reference/age-range
Graph API Version
Album - Graph API
Source: https://developers.facebook.com/docs/graph-api/reference/album
Graph API Version
Graph API Reference v25.0: Album Photos
Source: https://developers.facebook.com/docs/graph-api/reference/album/photos
Graph API Version
App Link Host - Graph API
Source: https://developers.facebook.com/docs/graph-api/reference/app-link-host
Graph API Version
Graph API Reference v25.0: App Request Former Recipient
Source: https://developers.facebook.com/docs/graph-api/reference/app-request-former-recipient
Graph API Version
Graph API App
Source: https://developers.facebook.com/docs/graph-api/reference/app
Graph API Version
/app/app_link_hosts
Source: https://developers.facebook.com/docs/graph-api/reference/app/app_link_hosts
Graph API Version
Roles - Graph API
Source: https://developers.facebook.com/docs/graph-api/reference/app/roles
Graph API Version
Subscriptions - Graph API
Source: https://developers.facebook.com/docs/graph-api/reference/app/subscriptions
Graph API Version
Graph API Reference v25.0: Application App Event Types
Source: https://developers.facebook.com/docs/graph-api/reference/application-app-event-types
Graph API Version
Graph API Reference v25.0: Application Object Store URLs
Source: https://developers.facebook.com/docs/graph-api/reference/application-object-store-urls
Graph API Version
Graph API Reference v25.0: Application Permission
Source: https://developers.facebook.com/docs/graph-api/reference/application-permission
Graph API Version
Graph API Reference v25.0: Application Restriction Info
Source: https://developers.facebook.com/docs/graph-api/reference/application-restriction-info
Graph API Version
Graph API App
Source: https://developers.facebook.com/docs/graph-api/reference/application
Graph API Version
Graph API Reference v25.0: Application Accounts
Source: https://developers.facebook.com/docs/graph-api/reference/application/accounts
Graph API Version
Graph API Reference v25.0: Application Ad Placement Groups
Source: https://developers.facebook.com/docs/graph-api/reference/application/ad_placement_groups
Graph API Version
Graph API Reference v25.0: Application Adnetworkanalytics Results
Source: https://developers.facebook.com/docs/graph-api/reference/application/adnetworkanalytics_results
Graph API Version
Graph API Reference v25.0: Application Aem Attribution
Source: https://developers.facebook.com/docs/graph-api/reference/application/aem_attribution
Graph API Version