I'm trying to recover the access token via the Instagram Basic Display API but when trying to authenticate the test user I get this error:
{ "error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app" }
I expect to see the app authorization screen
OAuthException: If you receive an OAuthException error, it means that Edgar doesn't have the correct permissions to access your Facebook accounts right now. The password may have been changed on Facebook or Facebook may have reset your security session.
Error "Insufficient developer role" may appear if Facebook App is in the Development Mode and you are not a Tester. You have to make yourself a Tester or enable Live Mode. Error " The access_token provided is invalid." may appear if the access token is older than 60 days. Try to reconnect. Last updated on July 20, 2022.
Visit the page https://www.instagram.com/developer/register/ by tapping on the link. Log in to your Instagram account with your credentials. Fill in the developer signup by providing your website domain, phone number, and your motives to use the API. After that, register your application to the web client.
The Instagram Basic Display API allows users of your app to get basic profile information, photos, and videos in their Instagram accounts. The API can be used to access any type of Instagram account but only provides read-access to basic data.
Felice!
When setting up an Instagram app, you should use the platform-specific App ID and not the generic one set up on Facebook.
In your Facebook app Dashboard go to Products > Instagram > Basic Display
and should see the Instagram App ID.
Use that in your authorization URL and it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With