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, select the Business use case or app type, and fill in the app details.

Configure OAuth redirect URIs

Under Use Cases, find Authentication and Account Creation, click Customize, then Go to Settings. Add the Alter callback URL from the Developer Portal to Valid OAuth Redirect URIs.

Get credentials

Go to 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

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.