Skip to content

Reference

Instagram

Set up Instagram OAuth for business account data and media management

Connect your users to Instagram for business account data, media publishing, comment management, and insights — via the Meta Graph API.

PropertyValue
Provider IDinstagram
CategorySocial
PKCESupported
Token refreshAutomatic
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 your Meta App ID
  • Client Secret: Paste your 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
pages_show_listView the list of Pages the user manages (required for Instagram)
pages_read_engagementView engagement data on the user’s Pages
  • 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/createsendPOST/{ig-media-id}/comments
ig-comment/replies/createsendPOST/{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 which product and documentation features are useful.

Performance diagnostics

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

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