This endpoint allows you to exchange an Authorization Code for a short-lived Instagram User Access Token.
POST /oauth/access_token
Exchange an Authorization Code for a short-lived Instagram User Access Token.
None.
POST https://api.instagram.com/oauth/access_token
Include the following parameters in the POST
request body.
Key | Sample Value | Description |
---|---|---|
|
| Your Instagram App ID displayed in App Dashboard > Products > Instagram > Basic Display. |
|
| Your Instagram App Secret displayed in App Dashboard > Products > Instagram > Basic Display. |
|
| The Authorization Code you want to exchange for an Instagram User Access Token. |
|
| Set this value to |
|
| The redirect URI you used when constructing the Authorization Window URL. This must be the same URI or we will reject the request. |
{ "access_token": "{access-token}", "user_id": {user-id} }
Field | Value Description |
---|---|
| The user's app-scoped short-lived Instagram User Access Token. |
| The user's app-scoped User ID. |
curl -X POST \ https://api.instagram.com/oauth/access_token \ -F client_id=990602627938098 \ -F client_secret=eb8c7... \ -F grant_type=authorization_code \ -F redirect_uri=https://socialsizzle.herokuapp.com/auth/ \ -F code=AQCvI...
{ "access_token": "IGQVJ...", "user_id": 17841405793187218 }
This operation is not supported.
This operation is not supported.
This operation is not supported.