Instagram login error "Invalid platform app": what to check
"Invalid platform app" appears when Instagram's login window, https://www.instagram.com/oauth/authorize, does not accept the app named in client_id. Check that value first: Business Login for Instagram takes the Instagram app ID shown under Instagram, API setup with Instagram login, in the App Dashboard, not the Meta app ID at the top of the dashboard, which Facebook Login and Unified Login use.
easyCoexistence's Meta app runs Business Login for Instagram for you: choose New connection, then Instagram, sign in with the Business or Creator account and approve the permissions, and Claude, ChatGPT or your own platform can publish, reply to comments and DMs and read insights through Meta's official API.
Takes the app's Instagram app ID, found in the business login settings, in Business Login for Instagram.
Facebook Login for Business uses the Meta app ID; Business Login for Instagram uses the Instagram app ID.
redirect_uri must match a saved OAuth redirect URI; the dashboard may have added a trailing slash.
The app type required before an app can add the Instagram product.
What Unified Login's code exchange uses, with the Meta app secret, instead of the Instagram app ID and secret.
What does "Invalid platform app" mean?
Instagram's authorization window does not recognize the app in the request as one it signs people in to. Meta's documentation does not list the message itself, but it sets out what that window, https://www.instagram.com/oauth/authorize, works with: an app that has the Instagram product with API setup with Instagram login, named by its Instagram app ID. A request naming another app ID falls outside that.
Which app ID goes in client_id?
The Instagram app ID. A Meta app using Instagram Login shows two IDs: the Meta app ID at the top of the App Dashboard, which Facebook Login for Business uses, and the Instagram app ID, which Business Login for Instagram takes as client_id. Its app secret pairs with it in the token exchange. Meta's login guide gives the path to it:
How do you build the authorization URL?
With the four required parameters and an optional state, as Meta's reference lists them. The App Dashboard's Embed URL, in the same Set up Instagram business login step, is a ready-made version that already carries the Instagram app ID and the scopes.
https://www.instagram.com/oauth/authorize
?client_id=<INSTAGRAM_APP_ID>
&redirect_uri=https://app.example.com/instagram/callback
&response_type=code
&scope=instagram_business_basic,instagram_business_content_publish
&state=<CSRF_TOKEN>What else does the request have to match?
Three more parameters have to be right, each as Meta's login guide describes it:
redirect_uri: an exact match for a URI saved under Business login settings, OAuth redirect URIs; the dashboard may have added a trailing slash, so compare against the saved list.response_type: code.- scope:
instagram_business_basicplus the other instagram_business_* permissions the app uses; the old business_* values were deprecated on 27 January 2025.
Which app setup does the Instagram login need?
Only an app that already has API setup with Instagram login. Meta's migration guide says newly created apps can't set up the Instagram API with Instagram Login, so a new app has no Instagram app ID to send and signs people in through Unified Login, with a login URL that carries a config_id. On an existing app, business login is set up in step 3 of API setup with Instagram login, with the redirect URL and the OAuth redirect URIs saved.
What happens after the login works?
Instagram redirects to the redirect_uri with a code, valid for one hour and usable once; strip the #_ that Meta appends to the end before using it. The server exchanges it at https://api.instagram.com/oauth/access_token with the Instagram app ID and secret, the same redirect_uri and grant_type=authorization_code. A code sent twice fails with Matching code was not found or was already used.
Do you need this with easyCoexistence?
No. easyCoexistence's Meta app holds Business Login for Instagram, so the account owner chooses New connection, then Instagram, in the dashboard and approves the permissions in Instagram's own window, while the app ID, the redirect URI and the token exchange are handled for you. Platforms connecting their customers send them to a hosted connect link from the Partner API instead.
Common mistakes
- Copying the ID at the top of the App Dashboard. That is the Meta app ID; Business Login for Instagram takes the Instagram app ID from its business login settings.
- Dropping the trailing slash the dashboard added to a redirect URI. Meta needs an exact match with the saved OAuth redirect URIs.
- Sending scope values from older examples. business_basic and the other business_* names were deprecated on 27 January 2025.
- Pairing the Instagram app ID with the Meta app secret in the token exchange. Instagram Login uses the Instagram app ID and secret together.
US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Is the Instagram app ID the same as the Meta app ID?
No. Facebook Login for Business and Unified Login use the Meta app ID, while Business Login for Instagram uses the Instagram app ID shown in its own settings.
How does Unified Login sign people in?
With a login URL carrying a config_id from its App Dashboard configuration, and a code exchange that uses the Meta app ID and secret rather than the Instagram ones.
What does error_reason=user_denied mean?
The person cancelled the login. Instagram redirects with error=access_denied, error_reason=user_denied and error_description=The user denied your request, and the app should handle it gracefully.
Do I need my own Meta app to connect Instagram to easyCoexistence?
No. easyCoexistence's Meta app holds the Instagram permissions, so the account owner signs in with Instagram and approves them.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on