Instagram is covered by Managed Keys - no Meta app review to pass. Bring your own app and instagram_business_content_publish (BYOK) only to white-label.
Instagram is covered by Managed Keys: your subscription includes Outstand's own Meta app, so you can connect Instagram Business or Creator accounts and publish photos, videos and Reels 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:
instagram_business_basic- Basic Instagram access (allows reading profile)instagram_business_content_publish- Permission to publish posts and Reelsinstagram_business_manage_comments- Permission to interact with commentsinstagram_business_manage_insights- Permission to read engagement metricsinstagram_business_manage_messages- Permission to read and send direct messages (only requested when your organization has DM messaging turned on, see Direct Messages)
Whether you use Managed Keys or BYOK, the first four are the OAuth scopes requested by default and required for the integration to work. instagram_business_manage_messages is only used by Direct Messages and is added to the defaults only while the organization's DM messaging setting is on, see Enable Direct Messages.
Prerequisites
This is a process which takes a considerable amount of time to complete. It's recommended to start the process well in advance of needing to use the integration. In our experience it takes at least 2 weeks to get the integration approved and fully working.
Before you begin, ensure you have:
- A Meta (Facebook) Developer account
- An Instagram Business or Creator account (personal accounts cannot be used for posting via API)
- Basic understanding of Meta's Instagram Graph API
Note: Instagram Business accounts can be managed by multiple users and are designed for social media management tools. Creator accounts are primarily for influencers. Convert your personal account to a Business or Creator account before proceeding. Outstand connects through the Instagram API with Instagram Login (
www.instagram.com/oauth/authorize), which does not require a linked Facebook Page - only an Instagram Business or Creator account.
Step 1: Create a Meta Developer Account
If you don't already have one:
- Go to developers.facebook.com
- Click Get Started or My Apps in the top right
- Sign in with your Facebook account
- Complete your developer profile by verifying your identity
Step 2: Create a New App
- Navigate to developers.facebook.com/apps
- Click Create App
- Select your app type:
- Choose Business if you're managing social media for a business
- Instagram integration is most commonly used with Business apps
- Fill in the required details:
- App Display Name: Your application name (e.g., "My Instagram Manager")
- App Contact Email: Your email address
- Business Account: Select or create a Business Account (required for Instagram API)
Step 3: Add Instagram Product to Your App
- After creating your app, you'll see the Add Products to Your App page
- Find Instagram in the list of available products
- Click Set Up next to Instagram
- Accept the required permissions and terms
If you don't see Instagram:
- Ensure you have a Meta Business Account
- Verify your app type supports Instagram integration
- Some regions may have limited Instagram API access
Step 4: Configure Basic Settings
- Navigate to Settings → Basic in your app dashboard
- Fill in the required fields:
- App Name: Confirm or update your app name
- App Domain: Your website domain
- Privacy Policy URL: Link to your privacy policy (required)
- Terms of Service URL: Link to your terms of service
- App Icon: Upload a 1024x1024px app icon
- Category: Select "Business" or "Utility"
- Click Save Changes
Step 5: Connect Your Instagram Business Account
Before you can use Instagram posting features, you need to connect your Instagram account:
- Go to Settings → Basic in your app dashboard
- Scroll down to the Instagram section
- Click Add or Remove Instagram Accounts
- Follow the prompts to connect your Instagram Business or Creator account
- A linked Facebook Page is not required - Outstand connects directly to your Instagram Business or Creator account via Instagram Login
Note: Your Instagram account must be a Business or Creator account. You cannot use a personal Instagram account with the API. Convert your account if necessary through Instagram settings.
Step 6: Configure OAuth Settings
-
Scroll to Basic Settings → Add Platform
-
Select Website from the platform options
-
Enter your Site URL (required for OAuth redirects)
-
Add Valid OAuth Redirect URIs:
- For production:
https://www.outstand.so/app/api/socials/instagram/callback
- For production:
-
In Instagram → API setup with Instagram login → Set up Instagram business login → Business login settings, set the callback URLs, replacing
{YOUR_APP_ID}with your Instagram App ID:- Deauthorize callback URL:
https://webhooks.outstand.so/instagram/{YOUR_APP_ID}/deauthorize - Data deletion request URL:
https://webhooks.outstand.so/instagram/{YOUR_APP_ID}/data-deletion
When either callback arrives, Outstand deletes the account that person connected through your app, together with its tokens, imported posts and message history.
- Deauthorize callback URL:
Step 7: Add Required OAuth Scopes
-
You'll need to request the following permissions:
instagram_business_basic- Basic Instagram access (allows reading profile)instagram_business_content_publish- Permission to publish posts and Reelsinstagram_business_manage_comments- Permission to interact with commentsinstagram_business_manage_insights- Permission to read engagement metrics
As you can see, the permissions are focused on Business Accounts only.
Direct Messages work with your own Meta app. Add
instagram_business_manage_messagesif you want them. Standard Access covers it automatically, with no App Review, when your app serves only Instagram professional accounts you own or manage; serving accounts you do not own or manage needs Advanced Access, which requires App Review and Business Verification. Skip the permission and the account can never send or receive direct messages. Once your organization turns DM messaging on, every connection requests it, so add it to your app before turning the setting on or the Instagram consent step fails. See BYOK direct message setup.
- Click on each permission to configure:
- Read the permission description
- Accept the required use cases
- Provide detailed explanations for how you'll use the permission
- Record a screencast showing your app's functionality
Important: Instagram Content Publishing requires detailed explanations and app review. Be specific about your use case for social media management and scheduling.
Step 8: Submit for App Review
Instagram publishing permissions require Meta App Review:
- Go to App Review → Permissions and Features
- Click Request next to permissions marked with warnings:
instagram_business_basicinstagram_business_content_publishinstagram_business_manage_commentsinstagram_business_manage_insights
- For each permission, provide:
- How will you use this permission? Describe your social media management use case
- Why do you need this permission? Explain the business need for posting to Instagram
- Instructions: Provide clear, step-by-step instructions for reviewers to test your app
- Submit a screencast showing your app's functionality (required)
- Configure Test Users (add yourself or colleagues who can test the app)
Processing Time: App review typically takes 1-7 business days. Instagram publishing review can take longer. Meta may request additional information or clarifications.
Step 9: Obtain Your Credentials
-
Navigate to Settings → Basic in your app dashboard
-
You'll find two important values:
- App ID: This is your OAuth Client ID (referred to as "client_key" in the API)
- App Secret: This is your OAuth Client Secret (referred to as "client_secret" in the API)
-
Click Show next to App Secret to reveal it
-
Copy both values immediately and store them securely
Security Warning: Your App Secret is sensitive and should never be exposed. Copy it only once and store it securely. You may need to reveal it multiple times, but it's better to save it securely the first time.
Step 10: Add Credentials to Outstand
Once you have your App ID and App Secret, you can add them to Outstand:
Method 1: Using the Dashboard
- Log in to Outstand Dashboard
- Navigate to Settings → Social Networks
- Select Instagram from the dropdown
- Enter your App ID in the "Client ID / API Key" field
- Enter your App Secret in the "Client Secret / API Secret" field
- Click Add Social Network
Method 2: Using the API
curl -X POST https://api.outstand.so/v1/social-networks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"network": "instagram",
"client_key": "YOUR_APP_ID_HERE",
"client_secret": "YOUR_APP_SECRET_HERE"
}'Step 11: Connect Your Instagram Account
After adding your credentials:
- Ensure your Instagram account is a Business or Creator account
- Navigate to Accounts in your Outstand dashboard
- Click Connect Account
- Select Instagram
- Complete the Instagram authorization flow
- Grant the required permissions (publish content, read engagement, etc.)
- Your Instagram account will appear in your connected accounts list
Note: Instagram publishing uses the Instagram API with Instagram Login, so the connection process authenticates directly with Instagram (
www.instagram.com/oauth/authorize) rather than through Facebook Login - no linked Facebook Page is required.
Troubleshooting
"Invalid client credentials"
- Verify you copied the App ID and App Secret correctly
- Ensure there are no extra spaces or newlines in your credentials
- Check that your app hasn't been deleted or disabled
"App not approved for this operation"
- Instagram publishing requires App Review approval from Meta
- Verify that
instagram_business_content_publishpermission has been approved - Check your app's review status in Meta Business Suite
- You can test in Test Mode before completing App Review
"Redirect URI mismatch"
- Verify the redirect URIs in your Meta app settings match exactly with Outstand's callback URL
- Redirect URIs are case-sensitive
"Instagram account not a Business account"
- Personal Instagram accounts cannot be used with the Graph API
- Convert your account to Business or Creator in Instagram app settings
- Go to Instagram → Settings → Account → Switch to Professional Account
"To use 'Human Agent', your use of this endpoint must be reviewed and approved by Facebook"
- The Meta app that owns the connection has not been approved for Human Agent
- Remove
instagram.tagfrom the request and reply within 24 hours of the contact's last message - See 24-Hour Messaging Window
Direct messages are not arriving
- On your own Meta app, confirm the app subscribes to the
messageswebhook field on itshttps://webhooks.outstand.so/instagram/{YOUR_APP_ID}callback, see BYOK direct message setup - Reconnect the account if it was connected before Direct Messages launched, and approve every requested permission
- The account must be a professional account (Business or Creator). Personal accounts cannot use direct messages
- In the Instagram app, go to Settings → Messages and story replies → Message controls → Connected tools and turn on Allow access to messages
- See Direct Messages for the full requirements
Important Notes
-
Business Account Required: Only Instagram Business and Creator accounts can use the API. Personal accounts cannot be integrated.
-
App Review: Instagram publishing requires App Review and approval from Meta. This process can take days to weeks. You can test most features in Test Mode before approval.
-
Content Types: Instagram Graph API supports:
- Photo posts (single image)
- Carousel posts (multiple images/videos, 2-20 items)
- Video posts / Reels (through Instagram's publishing API)
- Stories (single image or video, set
publishAsStory: truein Instagram config)
-
AI Content Disclosure: Self-disclose AI-generated media by setting
isAiGenerated: truein the Instagram configuration. See AI Content Disclosure below. -
Reels Feed Visibility: Set
shareToFeed: falsein the Instagram configuration to publish a Reel to the Reels tab only, without showing it in your main profile feed. See Reels Feed Visibility below. -
Credential Security: Never share your App Secret or commit it to version control. Use secure credential management for production apps.
Media Requirements
Instagram validates media through the Graph API Content Publishing endpoints. The limits below come from Meta's official IG User media reference.
Text
- Caption: up to 2,200 characters, with a maximum of 30 hashtags and 20
@mentions.
Images
| Requirement | Specification |
|---|---|
| Format | JPEG |
| Maximum size | 8 MB |
| Maximum width | 1440 px |
| Aspect ratio | Between 4:5 and 1.91:1 |
Alt Text
Set containers[].media[].altText on an image to give it screen-reader alt text:
{
"containers": [{
"content": "New product shots",
"media": [{
"url": "https://media.yoursite.com/images/product.jpg",
"filename": "product.jpg",
"altText": "Our new product on a white background"
}]
}]
}- Works on a single-image post and on each image item in a carousel.
- On a single-image post,
instagram.altTextis a fallback used only when the image has noaltTextof its own. - Max 1,000 characters.
- Never sent for video, Reels or Stories - Meta rejects
alt_texton those.
Feed Video
| Requirement | Specification |
|---|---|
| Codecs | H264 or HEVC video, AAC audio (up to 48 kHz) |
| Duration | 3 seconds to 60 seconds |
| Maximum size | 100 MB |
| Frame rate | 23-60 FPS |
Reels
| Requirement | Specification |
|---|---|
| Container | MOV or MP4 |
| Duration | 3 seconds to 15 minutes |
| Aspect ratio | 9:16 recommended (0.01:1 to 10:1 accepted) |
Carousel
- Between 2 and 20 items (images, videos, or a mix). Each image must meet the image requirements above.
- The limit counts all media across all containers. Creating or updating a post targeting Instagram with more than 20 items returns HTTP 400, including scheduled posts. Items are never silently truncated.
Stories
See Publishing Stories below for the full Stories media specification (single media only, JPEG image up to 8 MB, MP4/MOV video 3-60 seconds up to 100 MB).
Publishing Rate Limits
Instagram enforces a Content Publishing rate limit per Instagram account:
- 100 API-published posts within a rolling 24-hour period. A carousel counts as a single post.
- The limit applies to
POST /{ig-user-id}/media_publish. You can check current usage via theGET /{ig-user-id}/content_publishing_limitendpoint. - Stories published via the API count toward this same 100-post limit.
See Meta's Content Publishing documentation for details.
Available Metrics
When using the Account Metrics API with an Instagram account, the following engagement data is available:
| Metric | Description |
|---|---|
views | Total content views for the period |
likes | Total likes on posts, reels, and videos |
comments | Total comments received |
shares | Total shares of content |
saves | Total saves of content |
reach | Unique accounts that saw content |
accounts_engaged | Unique accounts that interacted |
total_interactions | Sum of all interaction types |
Requirements:
- Business or Creator account (personal accounts cannot access insights)
instagram_business_manage_insightspermission must be approved- Accounts with fewer than 100 followers may have limited insights availability
- Supports date range filtering via
sinceanduntilparameters (Unix timestamps)
Audience demographics
The Audience Demographics API returns the top countries, cities, age ranges or
genders of your followers (audience=followers) or of the accounts that engaged with your content
(audience=engaged), over the last 7 days (timeframe=this_week) or 30 days (timeframe=this_month).
curl "https://api.outstand.so/v1/social-accounts/YOUR_INSTAGRAM_ACCOUNT_ID/audience-demographics?breakdown=country" \
-H "Authorization: Bearer YOUR_API_KEY"Meta returns only the top 45 values, needs at least 100 followers (or 100 engagements for engaged) and
only counts people it has demographic data for. Top languages are not available through Meta's API.
MCP clients can read the same data with the get_audience_demographics tool (requires analytics:read).
Publishing Stories
Instagram Stories can be published through Outstand by setting publishAsStory: true in the Instagram configuration override when creating a post.
Each successful request publishes exactly one Story frame to the target Instagram account: one image or one video, counted across all containers. Multiple containers do not create a sequence of Story frames.
Publish frames in sequence
Send a separate request for each frame. Separate requests are processed independently, so sending them in order, or at the same scheduled time, does not guarantee they publish in that order.
For strict sequencing, subscribe to the post.published webhook and wait for the matching post's successful Instagram account result before sending the next frame. Check the account result, not just the event name: a cross-posted request can emit post.published when another network succeeded but Instagram failed. Alternatively, schedule frames with enough spacing for each to finish publishing before the next starts; spacing is not an ordering guarantee.
Example
This request publishes one image frame without a caption. Send the next frame only after confirming this one has published.
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accounts": ["YOUR_INSTAGRAM_ACCOUNT_ID"],
"containers": [
{
"media": [{ "url": "https://example.com/story.jpg", "filename": "story.jpg" }]
}
],
"instagram": {
"publishAsStory": true
}
}'Stories Limitations
- Single media only - Exactly one image or video is required across all containers. With
instagram.publishAsStory: true, a request containing 2-20 media items can be accepted, but the Instagram destination fails at publish time withInstagram Stories require a single image or video. This is not a Story-specific request-time400. The general Instagram media limit rejects more than 20 items at request time with400. - No caption - Empty or omitted container
contentis accepted when media is present. Caption text, including sharedcontent,instagram.contentandinstagram.caption, is not sent to Instagram for Stories. Stories therefore show no caption; text overlays are not added. - No interactive stickers - Link, poll, question, countdown, and location stickers are not available via the API.
- Story options - User tags (
instagram.userTags) andinstagram.isAiGeneratedare forwarded for Stories.instagram.locationId,instagram.collaborators,instagram.altTextand per-mediaaltTextare not forwarded. Reel-only optionsreelCoverUrl,shareToFeedandtrialReelcause a publish-time error when combined with a Story. - 24-hour expiry - Stories automatically expire 24 hours after publishing (standard Instagram behavior).
- Image specs - JPEG format, max 8 MB, recommended 9:16 aspect ratio (1080x1920).
- Video specs - MP4 or MOV, 3-60 seconds duration, max 100 MB, recommended 9:16 aspect ratio, H264/HEVC codec.
- Rate limit - Stories count toward the shared limit of 100 API-published posts per rolling 24 hours.
User Tags
Set instagram.userTags to tag public Instagram accounts in the media. User tags work on single images, Reels, carousels and Stories.
{
"accounts": ["YOUR_INSTAGRAM_ACCOUNT_ID"],
"containers": [
{
"content": "Behind the scenes",
"media": [
{ "url": "https://example.com/one.jpg", "filename": "one.jpg" },
{ "url": "https://example.com/two.jpg", "filename": "two.jpg" }
]
}
],
"instagram": {
"userTags": [
{ "username": "partner_brand", "x": 0.5, "y": 0.5 },
{ "username": "photographer", "x": 0.2, "y": 0.8, "mediaIndex": 1 }
]
}
}| Field | Description |
|---|---|
username | Required. Public Instagram username |
x, y | Position from the left and top edges, 0.0 to 1.0. Required on images, including images in a carousel. Optional on Stories: send both or neither. Not used on carousel videos |
mediaIndex | Carousels only. The item to tag, counted from 0 across all containers. Defaults to the first item |
Outstand returns 400 when mediaIndex does not match any media, or when an image tag has no position.
Reel Cover Images
When you publish a video, Instagram picks the cover shown in the Reels tab from a frame of the video itself. You can control that in two ways through the Instagram configuration override:
reelCoverUrl- a public URL to your own cover image (for example, a designed thumbnail).reelThumbOffset- an offset in milliseconds, selecting a frame from the video.
If you set both, reelCoverUrl wins and the offset is ignored - this mirrors Instagram's own behavior.
Example
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Our new product in 30 seconds",
"accounts": ["YOUR_INSTAGRAM_ACCOUNT_ID"],
"containers": [
{
"content": "Our new product in 30 seconds",
"media": [{ "url": "https://example.com/reel.mp4", "filename": "reel.mp4" }]
}
],
"instagram": {
"reelCoverUrl": "https://example.com/reel-cover.jpg"
}
}'Cover Image Requirements
- Reels only - a cover image can only be set on a single-video post. Setting it on an image post, a carousel, or a Story returns an error.
- Publicly reachable URL - Instagram fetches the image from your server, so it cannot be behind auth. Expiring signed URLs must still be valid when the post publishes (which matters for scheduled posts).
- Format - JPEG, sRGB color space.
- File size - max 8 MB.
- Aspect ratio - 9:16 recommended (1080x1920). If your image is not 9:16, Instagram crops to the middle 9:16 rectangle for the Reels tab, and to the middle 1:1 square if the reel is also shared to the feed.
Reels Feed Visibility
By default, a Reel appears in both your profile feed/grid and the Reels tab. Setting shareToFeed in the Instagram configuration override sets Meta's share_to_feed parameter on the Reels container, so you can publish a Reel to the Reels tab only.
Example
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Our new product in 30 seconds",
"accounts": ["YOUR_INSTAGRAM_ACCOUNT_ID"],
"containers": [
{
"content": "Our new product in 30 seconds",
"media": [{ "url": "https://example.com/reel.mp4", "filename": "reel.mp4" }]
}
],
"instagram": {
"shareToFeed": false
}
}'Notes
- Default behavior - if you omit
shareToFeed, the parameter is not sent and Instagram's default applies: the Reel appears in both the profile feed and the Reels tab. false- the Reel is published to the Reels tab only and is kept out of the main profile feed.true- explicitly allows the Reel to appear in both the feed and the Reels tab.- Reels only - this option only applies to a single video published as a Reel. Setting it on a Story (
publishAsStory), a carousel (2 or more media items), or an image post fails with an error. - No guarantee from Meta - neither value determines whether the Reel actually appears in the Reels tab, because the Reel may not meet eligibility requirements or may not be selected by Instagram's algorithm.
- Combines with other Reel options - works alongside
reelCoverUrl,reelThumbOffset,trialReel,collaborators, andisAiGenerated.
Trial Reels
A trial Reel is shown first to people who do not follow you. Set instagram.trialReel.graduationStrategy to choose how it graduates to your followers:
MANUAL- you graduate the Reel yourself.SS_PERFORMANCE- Instagram graduates the Reel automatically based on its performance.
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Testing a new format",
"accounts": ["YOUR_INSTAGRAM_ACCOUNT_ID"],
"containers": [
{
"content": "Testing a new format",
"media": [{ "url": "https://example.com/reel.mp4", "filename": "reel.mp4" }]
}
],
"instagram": {
"trialReel": { "graduationStrategy": "MANUAL" }
}
}'- Reels only -
trialReelrequires a single video published as a Reel. - Manual graduation - with
MANUAL, graduating the Reel happens in the Instagram app, not through Outstand.
AI Content Disclosure
Instagram supports self-disclosure of AI-generated content at publish time. Setting isAiGenerated: true in the Instagram configuration override sets Meta's is_ai_generated parameter on the media container, which Instagram surfaces as an "AI info" label on the post.
Example
curl -X POST https://api.outstand.so/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Generated with our new AI creative tool",
"accounts": ["YOUR_INSTAGRAM_ACCOUNT_ID"],
"containers": [
{
"content": "Generated with our new AI creative tool",
"media": [{ "url": "https://example.com/ai-image.jpg", "filename": "ai-image.jpg" }]
}
],
"instagram": {
"isAiGenerated": true
}
}'Notes
- Applies to all media types - feed posts, Reels, carousels, and Stories.
- Carousels - the flag is applied to the carousel as a whole. Meta rejects
is_ai_generatedon individual carousel items, so Outstand always sets it on the carousel container, not the child items. - No extra permissions - no additional OAuth scopes or minimum API version are required.
- Independent of embedded metadata - this is separate from C2PA/IPTC provenance metadata that may already be embedded in your media file. Instagram may apply an AI label from detected metadata even without this flag. See Meta's approach to labeling AI-generated content for how the two signals interact.
Comment Webhooks
Subscribe a webhook endpoint to comment.received to be notified when someone comments on a connected account's post, or replies to a comment on it. It covers every post the account owns, including posts published outside Outstand, plus comments received during Instagram Live broadcasts, and carries the comment text and its author. Live comments have data.isLive: true; regular comments have data.isLive: false. Existing subscribers receive both, so filter on this field when needed. See the comment.received payload.
- Permissions - Instagram Login comment webhooks require
instagram_business_basicandinstagram_business_manage_comments, both default scopes. Live comments need no additional scope. - Your own comments are skipped - comments written by the connected account, including replies sent through Outstand, do not trigger the event.
- Reply in a direct message - answer a comment privately with
POST /v1/conversations, passingcommentIdandauthorIdfrom the event asinstagram.comment_idandinstagram.author_id. See Comment-to-DM. Enable Direct Messages on the account so the commenter's answer reaches you. - Reconnect existing accounts for Live comments - Outstand subscribes new and reconnected accounts to both
commentsandlive_comments. Accounts connected before Live comment support must reconnect once to receive Live comments; there is no bulk migration. Reconnecting keeps the account's ID, scheduled posts and history. - Live delivery only - Live notifications stop when the broadcast ends.
platformPostIdis the broadcast media ID;postIdisnullwhen it was not published through Outstand. This support receives comments only and adds no broadcast lifecycle events, comment history or new reply capabilities.
BYOK comment webhook setup
For your own Meta app, configure both levels of webhook subscription:
- Obtain Advanced Access for
instagram_business_basicandinstagram_business_manage_commentsthrough Meta App Review, and put the app in Live mode for production delivery. The connected Instagram account must be a public professional account (Business or Creator). - In the Meta app's Instagram webhook settings, use the existing verified callback
https://webhooks.outstand.so/instagram/{YOUR_APP_ID}and subscribe to bothcommentsandlive_comments. Keep the callback's existing verification configuration. If you have not configured a verified callback yet, contact support@outstand.so for setup. - Connect or reconnect the account through Outstand. Outstand then subscribes that account to both fields automatically. Existing accounts must reconnect after
live_commentsis enabled on your app. - Subscribe your Outstand webhook endpoint to
comment.received, start a Live broadcast and have another account comment during it. Check fordata.isLive: trueand deduplicate deliveries usingaccountIdpluscommentId.
With Managed Keys, Outstand manages the Meta app subscription; reconnect existing accounts to enable their Live comment subscription. See Meta's webhook fields, setup guide and payload examples.
Direct Messages
Outstand can read and reply to Instagram direct messages for your connected accounts. Inbound messages are delivered to Outstand by Meta in real time and grouped into conversations, one per contact. Direct Messages are opt-in per connection, 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 with a contact by sending them the first message |
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.
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
messagesandmessaging_postbacksfor messages and interactive replies, see BYOK direct message setup. Either way, Direct Messages need your organization's DM messaging setting turned on, see Enable Direct Messages.
Enable Direct Messages
Direct Messages need the instagram_business_manage_messages permission. Outstand only requests it 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).
- On: the default scopes include
instagram_business_manage_messages, so connecting from the dashboard or from an authentication URL withoutscopesenables Direct Messages. - Off: the permission is never requested, and an authentication URL request whose
scopesinclude it is refused with403and"code": "dm_messaging_disabled".
curl -X POST https://api.outstand.so/v1/social-networks/instagram/auth-url \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"redirect_uri": "https://your-app.example.com/social/callback"
}'If you pass scopes yourself, the list replaces the defaults, so include the four default scopes as well as instagram_business_manage_messages.
- Send the account owner to the returned
auth_url - They must approve every requested permission on the Instagram consent screen, including access to messages
- Outstand then subscribes the account to message webhooks automatically
BYOK direct message setup
With Managed Keys, Outstand owns the Meta app and its webhook subscription, so direct messages need nothing beyond enabling them on the connection. On your own Meta app, configure both app-level and account-level subscriptions. These instructions apply to Outstand's Instagram Login connection using instagram_business_* permissions, not the separate Facebook Login/Messenger Platform permission setup.
- Add
instagram_business_manage_messagesto your Meta app's Instagram use case. Standard Access covers every permission automatically and needs no App Review when the app serves only Instagram professional accounts you own or manage; serving accounts you do not own or manage needs Advanced Access, which requires App Review and Business Verification. Put the app in Live mode for production delivery. - In the Meta app's Instagram webhook settings, use the existing verified callback
https://webhooks.outstand.so/instagram/{YOUR_APP_ID}and subscribe to bothmessagesandmessaging_postbacks. Quick-reply selections arrive throughmessages; postback button taps needmessaging_postbacks. Keep the callback's existing verification configuration. If you have not configured a verified callback yet, contact support@outstand.so for setup. - Connect or reconnect each account with the messaging scope, see Enable Direct Messages. Outstand subscribes the account to
messagesandmessaging_postbacksfor you, based on the scopes Meta granted. - Subscribe your Outstand webhook endpoint to
message.received, then test a typed message, a quick reply and a postback button from another Instagram account. Confirm the interactive events carry the expectedinteraction.id; a URL button only opens a link and does not send a response.
This is the same callback used for comment webhooks: one Meta app delivers every Instagram product down a single callback URL, and Outstand verifies each delivery against your own app secret.
Both subscription levels must include the applicable fields: enabling messaging_postbacks on the account does not repair a missing app-level subscription. See Meta's webhook fields and permissions by login type and postback event examples.
Reconnect Existing Accounts
Accounts connected without instagram_business_manage_messages, including every account connected while DM messaging was off, must be reconnected after DM messaging is turned on before any messages are received or sent. Reconnecting updates the existing social account in place, keeping its ID, scheduled posts and history. Reconnecting a messaging-enabled account while DM messaging is off, or with a scopes list that omits the permission, removes messaging access again. See Existing accounts for how an account without the permission behaves.
Instagram Account Requirements
- Professional account - Meta's messaging API only works with Instagram professional accounts, meaning Business or Creator. Personal accounts have no messaging API access at all. To convert one, go to Instagram → Settings → Account → Switch to Professional Account.
- Allow access to messages - the account must allow connected tools to access its messages. In the Instagram app, go to Settings → Messages and story replies → Message controls → Connected tools and turn on Allow access to messages. Without it, Meta does not deliver the account's messages to Outstand.
24-Hour Messaging Window
Instagram 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.
The
HUMAN_AGENTtag is available on request. Meta offers a Human Agent feature that extends the reply window to 7 days for a human replying to a support issue. Outstand enables it per organization - contact support to request access. Until it is enabled, sendinginstagram.tagreturns a403.The Meta app that owns the connection must also be reviewed and approved by Meta for Human Agent. If it is not, Instagram rejects the send with:
To use 'Human Agent', your use of this endpoint must be reviewed and approved by Facebook.
Notes
- No message history - only messages sent or received after the account is connected with the messaging permission are available. Earlier conversations are not imported.
- Conversations start with the contact - Instagram does not allow a business to message someone out of the blue. A conversation starts when the contact messages the account, 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.
Next Steps
Once your Instagram credentials are configured and approved, you can:
- Connect your Instagram Business or Creator accounts via the Outstand dashboard
- Create Instagram posts using the Posts API
- Upload photos and videos for your posts via the Media API
- Schedule Instagram content for optimal timing
- Monitor engagement through Instagram analytics
- Get notified of new comments with the
comment.receivedwebhook - Read and reply to direct messages (requires explicitly requesting the messaging scope)