Search code examples
swiftinstagram-api

How to get access token from Instagram API


I've been following Instagram's basic guides here https://developers.facebook.com/docs/instagram-basic-display-api/guides/getting-access-tokens-and-permissions

I added my personal Instagram account as a tester and I got the authorization code, but when I send the request to get the access token, this is my response:

{
    "error_type": "OAuthException",
    "code": 400,
    "error_message": "Missing required field client_id"
}

This is my input in POSTMAN:

enter image description here

Any help or possible tips will greatly be appreciated, thanks in advance!


Solution

  • I found the solution to my own question here Impossible to get an access_token for Instagram Basic Display API

    When using Postman for Instagram's API, you should fill out the information required under the POST request's Body, NOT the Parameters. And when in the body, just select x-www-form-urlencoded