Skip to content

Integrations

Instagram

Set up Instagram OAuth for business account data and media management

Connect the application’s users to Instagram for business account data, media publishing, comment management, and insights, through the Meta Graph API.

PropertyValue
Provider IDinstagram
CategorySocial
PKCESupported
Token refreshNot supported — Meta issues no refresh token; users reconnect when the access token expires
Redirect URIShown in Developer Portal

Go to the Meta for Developers portal

Navigate to developers.facebook.com/apps and sign in. Instagram OAuth requires a Meta (Facebook) app.

Create a new app

Click Create App, enter the app name and contact email, then add the Manage messaging & content on Instagram use case (it provisions the Instagram permissions and the Page permissions they depend on).

Configure OAuth redirect URIs

In the app’s left menu open Facebook Login for Business (or Facebook Login) > Settings. Under Client OAuth settings, add the Alter callback URL from the Developer Portal to Valid OAuth redirect URIs and save.

Get credentials

Go to App settings > Basic and copy the App ID (Client ID) and App Secret (Client Secret).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Instagram provider

Go to OAuth Providers > Add Provider > Instagram.

Enter credentials

  • Client ID: Paste the Meta App ID
  • Client Secret: Paste the Meta App Secret

Select scopes

Choose the scopes the application needs.

Save

Click Save. The provider is now active.

ScopeDescription
instagram_basicView the user’s Instagram account profile and media
instagram_content_publishPublish media to the user’s Instagram account
instagram_manage_commentsRead and manage comments on the user’s Instagram media
instagram_manage_insightsView analytics and insights for the user’s Instagram account
instagram_manage_messagesRead and send Instagram Direct messages for the professional account
instagram_manage_contentsDelete posts, stories, and reels on the user’s Instagram account
instagram_manage_engagementPublish or delete likes on Instagram media and comments (requires pages_read_user_content)
pages_show_listView the list of Pages the user manages (required for Instagram)
pages_read_engagementView engagement data on the user’s Pages
pages_read_user_contentRead user-generated content on the user’s Pages (required by instagram_manage_engagement)
  • Instagram and Facebook share the same Meta OAuth endpoints and App ID/Secret. If you configure both providers, they must use the same Meta app credentials.
  • Instagram OAuth requires the user’s Instagram account to be connected to a Facebook Page.
  • Some permissions require App Review before use in production.
  • See the Instagram API with Facebook Login documentation for more details.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
ig-media/comments/createsend, writePOST/{ig-media-id}/comments
ig-comment/replies/createsend, writePOST/{ig-comment-id}/replies
ig-user/media-publishsendPOST/{ig-user-id}/media_publish
ig-user/media/createwritePOST/{ig-user-id}/media
ig-comment/deletedeleteDELETE/{ig-comment-id}
ig-media/comments/listreadGET/{ig-media-id}/comments
ig-comment/replies/listreadGET/{ig-comment-id}/replies
ig-hashtag-searchreadGET/ig_hashtag_search
ig-user/content-publishing-limitreadGET/{ig-user-id}/content_publishing_limit
ig-user/media/listreadGET/{ig-user-id}/media
ig-user/storiesreadGET/{ig-user-id}/stories
ig-user/tagsreadGET/{ig-user-id}/tags
me/accountsreadGET/me/accounts
me/getreadGET/me

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.