Skip to main content
The Instagram API in SocialAPI connects an Instagram Business or Creator account through Instagram Login by default, or through Facebook Login when the account has a linked Facebook Page: see Connect through Facebook Login. It publishes posts, Reels, carousels, and Stories, reads and moderates comments, sends private replies and direct messages (DMs), and reads mentions, stories, and insights. SocialAPI’s own Meta app connects the account, so you register nothing: see Platform apps.

At a glance

Capabilities

An unsupported call returns 501 resource.not_supported. Read the capabilities object on each comment instead of assuming (can_like, can_private_reply). The cross-platform matrix is on Platforms.

Connect an account

Connect with POST /v1/accounts/connect and "platform": "instagram". The shared flow, request fields, and result are in Connect accounts, and the redirect parameters are in Redirect parameters.
Response (HTTP 202):
Instagram-specific rules:
  • Account type. The person must connect an Instagram Business or Creator account. A personal account cannot be connected.
  • One account per brand. A brand holds one Instagram account. With Facebook Login, each further Instagram account the login granted appears as a Page of the brand’s Instagram account. Connecting a different Instagram account to the same brand ends with status=error and error=account.already_linked on your redirect_uri.
  • Reconnect. If a token is no longer valid, calls return 401 platform.instagram.auth and the account needs reconnecting. See Reconnect an account.
  • Permissions. Send permissions to ask the person for fewer scopes: see Scopes.

Connect through Facebook Login

Connect through Facebook Login when the Instagram account has a linked Facebook Page and you need to delete published posts, like comments, or set the paid-partnership label. Instagram Login stays the default: send no connection_type and nothing changes. The two paths are the same platform, instagram, and every call, field, and webhook event is the same unless this section says otherwise. Select Facebook Login with metadata.connection_type: "facebook_login" on POST /v1/accounts/connect. Any other value, or none, connects through Instagram Login.
Response (HTTP 202):
The person signs in to Facebook, not Instagram, and approves the scopes in Facebook Login scopes. The redirect then carries status=selection_required, and you choose which Instagram accounts join the brand as described in Choose Facebook Pages. When facebook_page_selection is false on your SocialAPI account (GET /v1/users/me), or the connection started from an invite link, the redirect carries status=success and the brand’s Instagram account instead.

More than one Instagram account under one login

A Facebook login can administer more than one Instagram account. The brand’s Instagram account holds each Instagram account you select (or, without a selection step, every Instagram account the login granted that none of your other brands holds), each as a Page. The platform_page_id of such a Page is the Instagram account ID. List the Pages with GET /v1/accounts/{account_id}/pages, and publish to one with page_id on the post target: see Delivery. A Facebook Page with no linked Instagram account is not listed.
  • A login that grants no Instagram account ends with status=error and error=platform.instagram.no_pages on your redirect_uri.
  • Without a selection step, a login whose every Instagram account belongs to another of your brands, or is already held through Instagram Login, ends with status=error and error=platform.instagram.no_assignable_pages.
  • A brand whose Instagram account is connected through a different Facebook login ends with status=error and error=account.different_login. Disconnect the brand’s Instagram account first.

Requirements

  • The Instagram account is a Business or Creator account linked to a Facebook Page. An account with no linked Page does not appear in the connection: use Instagram Login.
  • The person holds the Page task that each capability needs. Meta grants an Instagram scope only for a task the person holds on the Page: create content for publishing, moderate for comments, messaging for DMs, and analyze for insights.
  • A DM or private reply on an account with no Facebook Page linked to it returns 409 platform.instagram.no_page. Reconnect the account.

One path per Instagram account

Hold each Instagram account through one path. Connecting through Facebook Login does not add an account that you hold through Instagram Login: such an account comes back with assignable: false in the selection step, and selecting it returns 409 platform.instagram.flow_conflict. Without a selection step, a connection with no other account to add ends with status=error and error=platform.instagram.no_assignable_pages. To switch an account to Facebook Login, disconnect it, then connect it again with connection_type: "facebook_login".

Differences from Instagram Login

Every other row of the Capabilities table behaves the same on both paths.

Facebook Login scopes

SocialAPI’s Meta app requests these scopes at connect. You apply for no app review. Each scope belongs to the account permissions in the last column, and the consent screen asks for the scopes of the permissions you selected. The scopes marked Every account are always requested. The account stays limited to the permissions you selected: an account connected with comments.read alone cannot reply to comments.

Comments

SocialAPI lists the comments on an Instagram post, replies in public, sends a private reply to the person who commented, and hides, unhides, and deletes comments. Liking a comment needs Facebook Login. The endpoints, private-reply rules, limits, and errors are in Instagram comments.

Direct messages

SocialAPI lists the DM conversations of an Instagram account, reads their messages, and sends text, attachments, and interactive messages inside the 24-hour messaging window. It also reacts to messages, sends typing indicators and seen receipts, and reads the profile of a person in a conversation. The messaging window, HUMAN_AGENT, message sizes, and errors are in Instagram direct messages.

Mentions

GET /v1/accounts/{account_id}/mentions returns media in which another account tagged yours. An @mention written in a caption or a comment is not in that list: it arrives as a mention.received event, with metadata.mention_type set to comment or caption. Reply to a mention with POST /v1/accounts/{account_id}/mentions/reply. A story mention arrives as a DM: see Incoming messages. Details are in Mentions.

Stories

GET /v1/platforms/instagram/accounts/{account_id}/stories lists the stories that are live now. Instagram removes a story 24 hours after posting, so a call returns nothing older. The request takes limit (1 to 100, default 20) and cursor, and no since.
Response (HTTP 200):
Each item has id, platform, caption, media_type, media_url, permalink, timestamp, like_count, comments_count, shares_count, view_count, account_id, and metadata. like_count, comments_count, shares_count, and view_count are always 0 on a story. An item also carries settings when Instagram reports any: see Settings on published posts. metadata.is_story is always true, and metadata.expires_at is the posting time plus 24 hours. For a video story with no media_url, the cover image is returned as media_url.

Collaboration invites

A collaborator is invited when a post is published, with platform_data.collaborators: see Instagram publishing. Instagram has no call that adds a collaborator to a published post. Three calls remain: The list call returns HTTP 200:
status is accepted, pending, or declined. Accepting or declining with no pending invite for the account on that media returns an error from Instagram. Accept and decline return {"success": true}.

Account summary

GET /v1/platforms/instagram/accounts/{account_id}/summary returns live profile counts and insight totals for the trailing 30 days.
Response (HTTP 200):
The insight totals need the analytics.read permission on the account. An account without it returns 403 account.permission_missing. When Instagram withdraws the insights access, the next call can return 403 platform.instagram.insights_scope_missing instead: reconnect the account. Instagram’s insight data can lag by up to 48 hours. Per-post and per-account metrics over a window you choose are in Analytics.

Webhook events

Instagram accounts emit these events to your webhook endpoints. Payloads are in Webhook events. Every post.* event in Webhook events is emitted for this platform.

Limits

GET /v1/accounts/{account_id}/limits returns posts_remaining, the posts left in Instagram’s rolling 24 hours.

Scopes

SocialAPI’s Meta app requests these scopes at connect through Instagram Login. You apply for no app review. The scopes of Facebook Login are in Facebook Login scopes. Each scope belongs to the account permissions in the last column, and the consent screen asks for the scopes of the permissions you selected. instagram_business_basic is always requested. Instagram asks for comments and for messages as 1 scope each, covering both reading and writing, so the consent screen shows the broader scope. The account stays limited to the permissions you selected: an account connected with comments.read alone cannot reply to comments.
Last modified on November 15, 2026