Facebook is covered by Managed Keys - no Meta app review to pass. Bring your own app and pages_manage_posts permissions (BYOK) only to white-label.
Facebook is covered by Managed Keys: your subscription includes Outstand's own Meta app, so you can connect Facebook Pages and publish posts through Outstand's unified API without registering anything yourself. The Bring Your Own Key (BYOK) steps below are optional - follow them only if you want your own Meta app credentials on the connection screen.
Managed Keys are included with your subscription. We handle the OAuth app setup for you, so you can skip the approval process entirely. Follow the steps below only if you want full white-labelling with your own Meta app credentials (BYOK). Contact support@outstand.so if you have questions about your Managed Keys setup.
Quick Information
Our application works with the following OAuth scopes:
pages_read_user_content- Permission to read user-generated content on your Pages (posts, comments)business_management- Permission to manage business pagespages_show_list- Permission to list the Pages you managepages_manage_posts- Permission to publish postspages_read_engagement- Permission to read engagement metrics and post-level insightspages_manage_engagement- Permission to interact with engagementread_insights- Permission to read Page insights and metricspages_messaging- Permission to read the Page's Messenger messages and send repliespages_manage_metadata- Permission to subscribe the Page to Outstand's webhooks, which is what delivers both its comments and its messages
These are the scopes Outstand requests by default. The first seven are required for the integration to work. On Managed Keys, Outstand also requests pages_manage_metadata, so Comment Webhooks work without you requesting anything. pages_messaging is only requested when your organization has the DM messaging setting turned on, on Managed Keys and BYOK alike. Connections made through your own Meta app (BYOK) do not get pages_manage_metadata by default, since your app may not have it, so pass it in scopes to receive comments and messages, see Enable Direct Messages.
Facebook Graph API
We utilize Meta's Facebook Graph API to connect to Facebook Pages and publish posts. The version of the API we use is v24.0.
Link posts and link carousels
Use facebook.link to publish an explicit Page-feed link attachment. Add
facebook.childAttachments for a carousel of 2-5 independently linked cards.
This is different from a multi-photo post: each card has its own destination URL.
Facebook link carousels require facebook.link in addition to each card's link.
The card URLs do not replace the parent link. This applies to both childAttachments
and its child_attachments alias. Creating a carousel without the parent link returns
400 before the post is stored or queued, rather than failing later with Meta's
(#194) Requires all of the params: link error.
{
"accounts": ["CONNECTED_FACEBOOK_ACCOUNT_ID"],
"content": "Explore our latest collections",
"facebook": {
"link": "https://shop.example.com/collections",
"childAttachments": [
{
"link": "https://shop.example.com/collections/summer",
"picture": "https://cdn.example.com/summer.jpg",
"name": "Summer collection",
"description": "Explore the range"
},
{
"link": "https://shop.example.com/collections/winter",
"picture": "https://cdn.example.com/winter.jpg",
"name": "Winter collection"
}
],
"multiShareEndCard": false
}
}| Field | Description |
|---|---|
link | HTTP(S) destination URL for the parent link post. Required when cards are supplied. |
childAttachments | Requires parent facebook.link. Array of 2-5 cards, each with a required HTTP(S) link and public HTTP(S) picture. Optional name and description customize the preview. Per-card callToAction (alias call_to_action) forwarding is experimental; see below. |
child_attachments | Alias for childAttachments. Send only one spelling; both together are rejected. Stored responses use childAttachments. |
multiShareEndCard | Whether Meta should append an end card. Defaults to false; only valid with carousel cards. |
callToAction | Optional post-level CTA, { type, value: { link } }. Requires parent facebook.link and the same URL in value.link. Supported for single-link posts; a visible button on carousels is not guaranteed. |
call_to_action | Alias for callToAction. Send only one spelling; stored responses use callToAction. |
Cards are sent in the supplied order and ad-specific automatic optimization is disabled. Ad-library image hashes are not supported. Card pictures are link-preview URLs, not container media uploads. Pictures must be reachable by Meta. Meta recommends square images of at least 458 x 458 pixels for best display.
Explicit links and carousels cannot be combined with media in the first container,
publishAsStory, publishAsReel, or videoCoverUrl. Existing subsequent comment
containers and comment mentions still work. The usual content or containers
requirement and scheduledAt scheduling behavior apply. Facebook-specific settings
do not turn posts for other networks into link carousels.
A successful create response means Outstand accepted the post for publishing, not that Facebook has already published it. Check the post's per-account publishing results for later Meta errors. Invalid carousel configuration is rejected up front.
Post-level call to action
Set facebook.callToAction on a single-link post to request a post-level button.
Its destination must match the parent facebook.link. Outstand also forwards this
field on link carousels for compatibility, but a carousel can publish successfully
without displaying a button. Card destinations can still differ.
{
"accounts": ["CONNECTED_FACEBOOK_ACCOUNT_ID"],
"content": "Explore our latest collections",
"facebook": {
"link": "https://shop.example.com/collections",
"callToAction": {
"type": "LEARN_MORE",
"value": { "link": "https://shop.example.com/collections" }
}
}
}Outstand accepts LEARN_MORE, SIGN_UP, BOOK_TRAVEL, DOWNLOAD, LISTEN_MUSIC,
WATCH_MORE, and WATCH_VIDEO. This is a subset of Meta's CTA types for general
link posts. Ads-only and specialized app/lead-generation actions are not supported;
for example, Meta's Page Feed reference marks SHOP_NOW as ads-only.
Both the parent and CTA URLs must use HTTP(S). CTA options cannot be combined with root media, Stories, Reels, or video covers. Omitting the CTA preserves ordinary link/carousel behavior. Meta's Page Feed v24.0 reference documents post-level link CTAs. It does not establish visible CTA buttons on organic carousel cards. Verify the visible button and destination on your Page; API acceptance alone does not guarantee rendering.
Experimental per-card CTAs
Outstand accepts callToAction or call_to_action inside each carousel card and
forwards it to Meta as call_to_action. Sending both spellings on one card is rejected. Stored
responses use callToAction. This works with both attachment aliases in REST and MCP.
The required type uses the same seven supported actions listed above. value and
value.link are optional for card CTAs. If supplied, value.link must be an HTTP(S)
URL matching that card's link, not the parent post link. This equality check is an
Outstand validation rule. Post-level CTAs still require value.link matching the parent.
{
"accounts": ["CONNECTED_FACEBOOK_TEST_PAGE_ACCOUNT_ID"],
"content": "Testing carousel card buttons",
"facebook": {
"link": "https://www.outstand.so",
"childAttachments": [
{
"link": "https://www.outstand.so/docs",
"picture": "https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg",
"name": "Curious cat",
"callToAction": {
"type": "LEARN_MORE",
"value": { "link": "https://www.outstand.so/docs" }
}
},
{
"link": "https://www.outstand.so",
"picture": "https://images.pexels.com/photos/1170986/pexels-photo-1170986.jpeg",
"name": "Another curious cat",
"callToAction": { "type": "LEARN_MORE" }
}
],
"multiShareEndCard": false
}
}Meta's Marketing API carousel guide
shows per-card CTAs in an advertising workflow, including a /feed request. The
Pages API v24.0 publishing specification does not list that field on cards. This
does not prove it cannot work, but organic rendering remains unverified. Forwarding
is experimental: a successful API response or published post ID does not establish
that buttons are visible. On your test Page, check each card's button and actual
click destination. Outstand does not automatically copy a post-level CTA onto cards.
Unknown fields inside cards and CTA objects are discarded and reported in response
warnings, including nested paths and card indexes, on create and update requests.
Editing a scheduled post or draft
On PATCH /v1/posts/:id, omitted fields retain their stored values and a supplied
card array replaces the whole array. Set childAttachments (or its alias), link,
or multiShareEndCard to null to remove that field. Set post-level callToAction (or its alias)
to null to remove the post-level CTA; supplying one replaces the whole object, not individual
nested fields. The resulting configuration must still be valid: clearing the parent
link also requires clearing any cards and post-level CTA. Changing a parent link with a stored
post-level CTA requires replacing that CTA with a matching destination or clearing it. A PATCH
that only replaces cards can reuse the stored parent link.
To remove or change a per-card CTA, replace the card array with the complete desired
cards, omitting the CTA from any card that should no longer have one. Per-card CTAs
do not accept null. Omitting the card array preserves stored cards and their CTAs.
To change a carousel into a normal link post, clear the cards and any explicit
end-card setting:
{
"facebook": {
"childAttachments": null,
"multiShareEndCard": null
}
}This does not provide editing of carousel cards on an already-published Facebook post.
Meta availability and link ownership
Meta's Page Feed reference documents multi-link posts and requires an image for each card. Custom link metadata is subject to Meta's link-ownership restrictions; see domain verification. Use a Page authorized to customize the linked domains and publicly accessible images. Outstand does not preflight domain ownership; Meta's publishing errors are surfaced through the existing post failure reporting.
Carousel rendering can vary by Page and Facebook surface. The current reference documents the fields, but the historical New Pages Experience entry in Meta's Pages changelog lists restrictions. Confirm the result on a test Page before relying on it in production: check two and five cards, each destination, ordering, custom metadata, and the end card. A returned post ID alone does not prove the carousel rendered correctly.
If Meta rejects the request, Outstand reports a publishing failure rather than retrying it as a text or multi-photo post. Previously these unsupported configuration fields were ignored with warnings; existing stored posts cannot recover those discarded values. Requests without the new fields retain their existing behavior.
Outstand OAuth Callback URL
When configuring your Meta app, you must add the following OAuth redirect URI:
https://www.outstand.so/app/api/socials/facebook/callbackThis is where Facebook will redirect users after they authorize your app. Make sure to add this URL to:
- Facebook Login → Settings → Valid OAuth Redirect URIs
- Settings → Basic → App Domains: Add
outstand.so
Deauthorize and Data Deletion Callback URLs
Meta requires your app to handle people removing it or asking for their data to be deleted. Point both callbacks at Outstand, replacing {YOUR_APP_ID} with your Meta App ID:
- Settings → Advanced → Deauthorize callback URL:
https://webhooks.outstand.so/facebook/{YOUR_APP_ID}/deauthorize - Settings → Basic → Data Deletion Request URL (choose Data deletion callback URL):
https://webhooks.outstand.so/facebook/{YOUR_APP_ID}/data-deletion
When either callback arrives, Outstand deletes the Pages that person connected through your app, together with their tokens, imported posts and message history. The deletion request returns a confirmation code and a status page Meta shows to the person.
White-labeling authentication flow
For full white-labeling integration, you need to follow the following flow:
Both pending-connection endpoints require your API key, and the session token must belong to the
same organization as that key - a session from another organization is rejected as though it had
expired. Holding the ?session= URL alone is therefore not enough to read or finalize a
connection. The session itself is valid for 30 minutes.
- Call the
/v1/social-networks/:network/auth-urlendpoint to get the authentication URL. You MUST provide a redirect_uri in the request body. - The redirect URI must lead to a Facebook-specific callback URL in your application. We will redirect to it with a
sessionquery parameter. - Your backend must call the
/v1/social-accounts/pending/:sessionTokenendpoint (docs link) to get the pending connection details. This call is authenticated with your API key, so it cannot be made from the browser. Strip thesessionparameter from the browser URL as soon as you have read it - left in place it ends up in browser history, your access logs and theRefererheader of every subsequent request. - The response will contain a list of available pages/accounts that can be connected: enough to render a picker (
id,name,profilePictureUrl), and never any provider access token. The token needed to publish stays with us and is attached to the account at the next step. - You can then redirect the user to a selection page where they can select the pages/accounts they want to connect.
- Once the user has selected the pages/accounts, your backend calls the
/v1/social-accounts/pending/:sessionToken/finalizeendpoint (docs link) to finalize the connection. This call is authenticated with your API key too. - The response will contain the connected accounts.
- You can then use the connected accounts to post on behalf of the user.
The full flow is illustrated in the following diagram:
Content Types
Outstand publishes four kinds of content to a Facebook Page:
| Type | How to publish it |
|---|---|
| Text, link and photo posts | Default. Text-only, a single photo, or an album of photos. |
| Videos | Default. Any container whose media is a video is published as a Page video. |
| Reels | Set publishAsReel: true in the facebook config. Requires one video. |
| Stories | Set publishAsStory: true in the facebook config. Requires one image or video. |
Reels and Stories are separate Graph API edges, not a property of the media - a 9:16 video published
without publishAsReel is a plain Page video, not a Reel.
Publishing Stories
Set publishAsStory: true in the Facebook configuration override when creating a post.
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accounts": ["YOUR_FACEBOOK_ACCOUNT_ID"],
"containers": [
{
"media": [{ "url": "https://example.com/story.jpg", "filename": "story.jpg" }]
}
],
"facebook": {
"publishAsStory": true
}
}'Note the shape: media lives on a container, never at the top level, and the container carries
no content - a Story has no caption, so omit it entirely. Sending a caption here is a 400
rather than a Story published with the text dropped.
Stories Limitations
- Single media only - exactly one image or video. Carousels and mixed media are rejected.
- No caption - Meta's Story endpoints accept no message field. A post that carries content is rejected, not published with the text silently dropped. See the note below.
- No comments or mentions - a Story has no comment thread, so extra containers (
containers[1+]) andfacebook.mentionsare rejected. Meta only resolves@[pageId]tags inside comments. - No scheduling on Meta's side - Stories publish the moment they are sent. Outstand's
scheduledAtstill works: we hold the post and publish at the scheduled time. - Media cannot be reused - Meta rejects a photo or video that was already used in a published post. Upload a fresh file for each Story.
- 24-hour expiry - Stories disappear after 24 hours (standard Facebook behaviour). After that,
Post Analytics returns
nullfor every metric withplatform_specific.story_expired: true, rather than failing. - Media URLs must be publicly crawlable - Outstand hands Meta the media URL and Meta fetches it.
Meta rejects files hosted on sites that disallow access via
robots.txt, and rejects files hosted on Meta's own CDN (fbcdnURLs). Serve story media from a URL that is publicly reachable and notrobots.txt-blocked. - Image specs - JPEG, PNG, BMP, GIF or TIFF, max 10 MB (keep PNGs under 1 MB), recommended 9:16 aspect ratio (1080x1920).
- Video specs - MP4, 3-60 seconds (Meta rejects a story longer than 60 seconds), 9:16 aspect ratio, 1080x1920 recommended and 540x960 minimum, 24-60 fps, H.264 or H.265, AAC audio at 128 kbps or better.
Because content is shared by every network in a post, a Facebook Story cannot be cross-posted in the
same call as captioned content for other networks - the request is rejected rather than publishing the
Story without the copy. Send the Story as its own call, and the captioned post as another.
Publishing Reels
Set publishAsReel: true in the Facebook configuration override. Unlike Stories, Reels do carry a
caption (the container content becomes the Reel description) and do accept comments, so
containers[1+] are published as comments in the usual way.
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accounts": ["YOUR_FACEBOOK_ACCOUNT_ID"],
"containers": [
{
"content": "Behind the scenes of this week's build",
"media": [{ "url": "https://example.com/reel.mp4", "filename": "reel.mp4" }]
}
],
"facebook": {
"publishAsReel": true
}
}'Reels Limitations
- One video, no images - a Reel is exactly one video. Images and multiple media are rejected.
- Mutually exclusive with Stories - sending both
publishAsReelandpublishAsStoryis a400. - Media URLs must be publicly crawlable - as with Stories, Meta fetches the file and rejects hosts
that block it via
robots.txt, as well asfbcdnURLs. - Video specs - MP4, 3-90 seconds, 9:16 aspect ratio, 1080x1920 recommended and 540x960 minimum, 24-60 fps, H.264 or H.265, AAC audio at 128 kbps or better.
- The published id may need resolving - Meta's Reels publish response is documented as returning
only
{ "success": true }, with no post id. Outstand falls back to the video id and resolves it to a queryable post id on the first analytics read, so a Reel's analytics may lag a feed post's by one request.
Media Requirements
When publishing posts with media to Facebook Pages, Outstand handles media processing automatically:
How Media Upload Works
- Media Download: Outstand downloads the media from your provided URL server-side
- Binary Upload: The media is then uploaded directly to Facebook as binary data
- Post Creation: Once the media is uploaded, the post is created with the media attached
This approach ensures reliable media uploads and avoids issues where Facebook cannot access your media URLs.
Image Requirements
| Requirement | Specification |
|---|---|
| Formats | JPEG, PNG, GIF, BMP, TIFF, WEBP |
| Maximum size | 10 MB |
| Minimum dimensions | 100x100 pixels |
| Maximum dimensions | 4096x4096 pixels |
Video Requirements
The limits below follow Meta's official video upload limits. The applicable maximum depends on the upload method Meta uses:
| Requirement | Specification |
|---|---|
| Formats | MP4, MOV, AVI, WMV, FLV, WEBM (MP4 recommended) |
| Maximum size (standard upload) | 1 GB |
| Maximum size (resumable upload) | Up to 1.75 GB |
| Maximum duration (standard upload) | 20 minutes |
| Maximum duration (resumable upload) | Up to 45 minutes |
| Minimum duration | 1 second |
| Recommended aspect ratio | 16:9 or 9:16 |
See Meta's video uploads guide for the full list of supported container formats and codecs.
Text
Facebook does not publish a hard character limit for Page post messages in the Graph API; posts support very long text (many thousands of characters). Keep copy concise for best engagement.
Alt Text
Set containers[].media[].altText on an image to give it screen-reader alt text, sent to Facebook as alt_text_custom:
{
"containers": [{
"content": "Check out our latest update!",
"media": [{
"url": "https://media.yoursite.com/images/update.jpg",
"filename": "update.jpg",
"altText": "Screenshot of the new dashboard showing weekly revenue"
}]
}]
}Works on a single-photo post and on each photo in a multi-photo post. Images only - not sent for video.
Media URL Requirements
Your media URLs must:
- Be publicly accessible over HTTPS
- Return a valid
Content-Typeheader (e.g.,image/jpeg,video/mp4) - Be available at the time of publishing (Outstand downloads the media when publishing)
- Not require authentication or special headers to access
Example with Media
{
"containers": [
{
"content": "Check out our latest update!",
"media": [
{
"url": "https://media.yoursite.com/images/update.jpg",
"filename": "update.jpg"
}
]
}
],
"accounts": ["YOUR_FACEBOOK_ACCOUNT_ID"]
}Common Errors
| Error | Cause | Solution |
|---|---|---|
(#324) Requires upload file | Legacy error - should not occur with current implementation | Contact support if you see this error |
(#100) Invalid image | Image format not supported or corrupted | Verify image is a valid JPEG/PNG |
(#1) An unknown error occurred | Temporary Facebook API issue | Retry after a few minutes |
Publishing Rate Limits
Facebook Pages publishing is governed by Meta's Business Use Case (BUC) rate limits rather than a fixed number of posts per day. Meta does not publish a hard "posts per day" cap; instead the allowance scales with your Page's activity.
- Page-level formula: the number of calls allowed within a rolling 24-hour window is 4,800 x the number of engaged users, where engaged users are the unique people who engaged with your Page in the last 24 hours.
- Limits are enforced over a rolling 24-hour window.
- When you exceed the limit, the Graph API returns a throttling error (code
4,17,32, or613depending on the case).
See Meta's Graph API rate limiting and page-level rate limits documentation.
Available Metrics
Post-level metrics
When using the Post Analytics API with a Facebook Page post:
| Metric | Description |
|---|---|
likes | Count of the LIKE reaction only - see the note below |
comments | Total comments on the post |
shares | Total shares of the post |
impressions | Times the post was rendered on screen (media views) |
reach | Unique people who saw the post |
engagement_rate | Engagement as a percentage of reach |
platform_specific additionally carries reactions_total (all six reaction types combined), the raw
insights values, insights_unavailable listing unavailable insight metrics, and
unavailable_fields listing engagement fields that Meta rejected or did not report.
likes counts only the LIKE reaction, so it is lower than the reaction count shown in Meta Business
Suite, which totals all six types. Use platform_specific.reactions_total when you want the number
that matches the Meta UI. engagement_rate already uses the fuller reaction total.
impressions and reach are returned as null, not 0, when Meta does not report them - so you can
tell "nobody saw this post" apart from "this could not be measured".
Post-level insights additionally require that the connecting user holds the Analyze task on the Page. A user with only Editor access can publish through Outstand but will not be able to read post insights.
Video and single-photo uploads may initially return a media ID instead of a Post ID. Outstand uses
Meta's corresponding Post ID when available, including resolving previously published posts on read.
The platform_post_id in analytics can therefore differ from the ID returned at publish time.
A Video node does not expose the Post's shares field. Unsupported or unreported engagement counts
are returned as null, with Graph field names listed in platform_specific.unavailable_fields
(reactions refers to reactions_total). Available likes, comments and reactions are still returned;
a measured zero remains 0. engagement_total and engagement_rate are null if a required count is
unavailable. Engagement uses total reactions when available, falling back to likes.
Post insights are requested separately when a Post ID is available; their failure does not discard
engagement counts. Availability depends on the object, metric and permissions. Meta also offers a
Video Insights API covering all posts
associated with a video. Outstand does not substitute those video-wide totals for engagement on one
post. See Meta's Post reference
for the Post-specific shares field.
Aggregated totals sum available measurements and can be partial. Engagement-rate averages include measured zero rates and exclude unavailable rates. These rules also apply to the MCP analytics tool.
Video and Reel metrics
For video posts and Reels, Outstand also reads Meta's
video insights
(lifetime totals) from the post's Video node and adds them to metrics:
| Metric | Reels | Regular videos | Description |
|---|---|---|---|
views | yes | yes | Reels: plays excluding replays. Videos: total video views |
average_watch_time_ms | yes | yes | Average time watched per play, in milliseconds (includes replays on Reels) |
total_watch_time_ms | yes | yes | Total time watched, in milliseconds |
total_plays | yes | - | Plays including replays |
replays | yes | - | Replay count |
followers_gained | yes | - | Page followers gained from the Reel |
approx_completion_rate | - | yes | Percentage of views that reached 97% of the video |
retention | yes | yes | Retention graph, only with include=retention (see below) |
Request the retention graph with GET /v1/posts/{id}/analytics?include=retention. It is an array of
{ t, pct } points, where pct is the percentage of plays still watching at position t. It costs one
extra Graph API request per video, which is why it is opt-in. Meta returns at most 41 points and
samples them in an undisclosed way, so read it as a curve rather than exact counts.
Meta has no completion-rate metric for Reels, so Reels do not return approx_completion_rate. Use
average_watch_time_ms together with the retention graph: the last retention point roughly
approximates the share of plays that reached the end. For regular videos, approx_completion_rate is
derived from Meta's 97%-complete views and is approximate by construction.
- Reel detection - a post published with
publishAsReelis treated as a Reel. Other posts, including Reels published natively in Facebook or imported, are detected from the post's attachment. - Missing values - a video metric Meta did not report is
nulland listed inplatform_specific.unavailable_fields. One metric Meta rejects does not cost you the others. The video id, whether it was treated as a Reel, and the raw Graph values are inplatform_specific.video. - Permissions - video insights need
read_insights, and the connecting user must hold the Analyze task on the Page. - Retention period and crossposts - Meta keeps video insights for two years. A crossposted video has a separate video id per Page, so each Page reports its own numbers.
- Not in the MCP tool yet - the MCP analytics tool returns the video metrics, but not the opt-in retention graph.
Account-level metrics
When using the Account Metrics API with a Facebook Page:
| Metric | Description |
|---|---|
impressions | Times Page content was rendered on screen for the period |
reach | Unique people who saw Page content |
post_engagements | Total engagement actions on Page posts |
Requirements:
pages_read_engagementandread_insightspermissions must be approved- Supports date range filtering via
sinceanduntilparameters (Unix timestamps)
Audience demographics
The Audience Demographics API returns the top countries
(breakdown=country) or cities (breakdown=city) of your Page followers, from Meta's
page_follows_country and page_follows_city metrics. Meta retired Page age, gender and language
metrics, so those breakdowns are not available for Facebook. Pages need at least 100 followers.
Meta's June 2026 insights deprecation
On 15 June 2026 Meta retired its impression and unique-reach metrics across Page, Post and Video Insights, in all API versions at once, and replaced them with "media view" metrics. Outstand now reads the replacements, which changes how you should read the numbers:
- A media view counts content actually rendered on screen, where an impression counted content delivered. The new numbers are therefore lower than the old ones for the same content.
- Meta did not backfill history. A drop across 15 June 2026 in your own reporting reflects the change of definition, not a change in your audience.
- The old and new metrics are not directly comparable, so avoid mixing them in one time series.
See Meta's deprecated metrics reference
for the full list. Outstand keeps its metric names in one place and degrades one metric at a time, so a
future Meta rename costs you that single metric rather than the whole analytics response - anything
missing is reported in insights_unavailable.
Importing Posts and Reels
Import posts from a social account automatically includes
published Facebook Page posts and Reels. No opt-in parameter is needed. The since, until, and
limit parameters apply to the combined import, rather than separately to posts and Reels.
Outstand reads regular posts from Meta's Page /posts edge and Reels from
/video_reels.
Imported records preserve their original publication time. Available media depends on what Meta
returns; importing a Reel does not guarantee a downloadable video file.
Instagram-crossposted Reels are included when Meta exposes them through the connected Page's
/video_reels edge. The Published by Instagram label in Facebook's UI does not, by itself,
guarantee that a Reel is available through the API. Stories are not imported.
If Meta rejects a required listing request, the job reports a failure or partial result rather than silently reporting a complete import. Check the import job's status and error when posts appear to be missing.
Comment Webhooks
Subscribe a webhook endpoint to comment.received to be notified when someone comments on a connected Page's post, or replies to a comment on it. It covers every post the Page owns, including posts published outside Outstand, and carries the comment text and its author. See the comment.received payload.
- Needs
pages_manage_metadata- Outstand subscribes the Page'sfeedfield when the Page connects, and Meta only allows that subscription when the connecting user grantedpages_manage_metadata. It is a default scope on Managed Keys, so you never need to request it yourself. On your own Meta app (BYOK) it is not, so pass it inscopes, see Enable Direct Messages. Without it no comment reaches Outstand, and nothing reports an error: the Page simply stays silent. - No commenter username - Facebook has no usernames to report for a commenter, so the event carries
authorNameand leavesauthorUsernamenull. Instagram is the other way round. - Your own comments are skipped - comments written by the connected Page, including replies sent through Outstand, do not trigger the event.
- Reply in a direct message - answer a comment privately with
POST /v1/conversations, passingcommentIdfrom the event asfacebook.comment_id. A Page needs no author id: Facebook addresses the contact by the comment alone. See Comment-to-DM, and enable Direct Messages on the Page so the commenter's answer reaches you. - Reconnect older Pages - Outstand subscribes a Page to comments when it connects. If a Page's comments never arrive, reconnect it once: on Managed Keys from the dashboard or an authentication URL without
scopes, on BYOK withpages_manage_metadatainscopes. Reconnecting keeps the Page's account ID, scheduled posts and history.
Direct Messages
Outstand can read and reply to a Facebook Page's Messenger conversations. Inbound messages are delivered to Outstand by Meta in real time and grouped into conversations, one per contact. Direct Messages are enabled by default on Managed Keys and opt-in per connection on your own Meta app, see Enable Direct Messages. You work with them through the Conversations API:
| Endpoint | What it does |
|---|---|
GET /v1/conversations | List conversations for your connected accounts |
GET /v1/conversations/{id} | Get a conversation, including the contact and unread count |
POST /v1/conversations | Start a conversation by privately replying to a comment |
GET /v1/conversations/{id}/messages | List the messages in a conversation |
POST /v1/conversations/{id}/messages | Send a reply, now or scheduled |
DELETE /v1/conversations/{id}/messages/{messageId} | Cancel a scheduled message |
POST /v1/conversations/{id}/read | Mark a conversation as read |
To react to new messages without polling, subscribe a webhook endpoint to the conversation.started, message.received, message.sent and message.failed events. See Getting started with Conversations for the end-to-end walkthrough.
Availability
Direct Messages work on both Managed Keys and BYOK. With Managed Keys, Outstand owns the Meta app and its webhook subscription, so there is nothing to configure at the app level. On your own Meta app, subscribe the app to the
messageswebhook field once, on the same per-app callback the deauthorize and data deletion URLs use:https://webhooks.outstand.so/facebook/{YOUR_APP_ID}. Outstand verifies each delivery against your own app secret, and subscribes each Page you connect to its comment and message webhooks. If the callback is not verified on your app yet, contact support@outstand.so. Either way, Direct Messages need your organization's DM messaging setting turned on, see Enable Direct Messages.
Enable Direct Messages
Direct Messages need pages_messaging, and the webhook subscription that delivers them needs pages_manage_metadata. Outstand only requests pages_messaging when your organization has DM messaging turned on: an org owner or admin turns it on in the Outstand dashboard under Settings > Security (it is off by default, see DM messaging setting). While it is off, an authentication URL request whose scopes include pages_messaging is refused with 403 and "code": "dm_messaging_disabled".
With DM messaging on, both are default scopes on Managed Keys, so a Page connected from the dashboard, or from an authentication URL without scopes, has Direct Messages enabled.
On your own Meta app (BYOK), the defaults include pages_messaging (with DM messaging on) but not pages_manage_metadata, and your app must have the messaging permission or the Facebook consent step fails. Generate the authentication URL with a scopes list. It replaces the defaults, so include the seven default scopes too:
curl -X POST https://api.outstand.so/v1/social-networks/facebook/auth-url \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"redirect_uri": "https://your-app.example.com/social/callback",
"scopes": "pages_read_user_content,business_management,pages_show_list,pages_manage_posts,pages_read_engagement,pages_manage_engagement,read_insights,pages_messaging,pages_manage_metadata"
}'- The account owner must approve every requested permission on the Facebook consent screen, including access to the Page's messages
- Finish the connection by picking the Pages to connect, in the dashboard or through the white-labeling flow
- Outstand subscribes each selected Page to comment and message webhooks automatically
A Page the user does not select at step 2 is never subscribed, even though the permissions were granted for it.
A scopes list on the authentication URL replaces the defaults rather than adding to them, so if you pass one, keep pages_messaging and pages_manage_metadata in it.
Reconnect Existing Pages
Pages connected without both messaging scopes, including Pages connected while DM messaging was off, must be reconnected after DM messaging is turned on before any messages are received or sent. On Managed Keys, reconnecting from the dashboard or with an authentication URL without scopes is enough; on BYOK, reconnect with the request above. Reconnecting updates the existing social account in place, keeping its ID, scheduled posts and history. Reconnecting with a scopes list that omits either messaging scope removes messaging access again. See Existing accounts for how a Page without the permission behaves.
24-Hour Messaging Window
Facebook only allows free-form replies within 24 hours of the contact's last inbound message. A send outside that window is rejected with a 422 carrying facebook_24h_window_expired, and a scheduled send is rejected up front when its scheduled_at would fall outside the window. A contact who has never messaged the Page is rejected with facebook_no_inbound_message.
Instagram's HUMAN_AGENT tag has no Facebook equivalent in Outstand. instagram options on a Facebook conversation, including the tag, quick replies and buttons, are rejected.
Notes
- No message history - only messages sent or received after the Page is connected with
pages_messagingare available. Earlier conversations are not imported. - Conversations start with the contact - Facebook does not allow a Page to message someone out of the blue. A conversation starts when the contact messages the Page, or when you privately reply to one of their comments: one reply per comment, within 7 days of it. After a private reply, nothing more can be sent until the contact answers.
- Text, media, or both - inside the window a reply takes
content, media URLs, or both. Messenger carries one attachment per message, so Outstand sends the text and each media URL as separate messages and reports the last one's ID. participantIdis a Messenger id - the contact is keyed by their Page-scoped Messenger ID, which Facebook only returns with the private reply. It is not theauthorIdthatcomment.receivedcarried.
Feel free to get in touch with our support team if you have any questions or need assistance with the integration.