"Invalid platform app" error using Instagram Basic Display API

Danish Ali Malik picture Danish Ali Malik · Feb 17, 2020 · Viewed 9.3k times · Source

I am trying to use Instagram Basic display API but when I post the authorization code to get the access token I keep getting the following error {"error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app"}

I am following all the steps mentioned here -> https://developers.facebook.com/docs/instagram-basic-display-api/getting-started and Yes I am using the Instagram app ID and It's client secret which is in Products -> Instagram -> Display and following is the URL I am sending the request

"https://api.instagram.com/oauth/access_token?client_id=".$app_id."&client_secret=".$app_secret."&grant_type=authorization_code&redirect_uri=".$redirecturi."&code=".$code,

Answer

Emeka Mbah picture Emeka Mbah · Apr 25, 2020

If you are using Postman, do remember it's a POST request. Use form data

enter image description here