Describe how to renew long lived Instagram Access Token. This is not meant to be an overall step-by-step guide on getting Instagram API to work in Sitecore, but rather it's designed to be a quick reference on renewing Instagram Long Lived Access Token.
Pre-Requisite
- Facebook Developer Account & App with Instagram Basic Display API or Graph API
- Possession of already provided valid Long Lived Instagram Access Token
- API Platform like Postman (recommended, but can be any platform or terminal that supports API)
Postman Workspace
1. Set Up
Set up a workspace in postman if you have not already. It should look like the picture below.
2. Fill In Root Url
Fill in the root URL: https://graph.instagram.com/refresh_access_token.
3. Fill In The Query Params
Fill in the KEY column: access_token and grant_type. In the VALUE column, use your current access token for access_token, and 'ig_refresh_token' for grant_type like so:
4. Send
Now press 'send'. If the result you get is something similar to this, the API call was successful.
Now you just need to update this access token in your application. Note that this access token lasts 60 days. Additionally, your previous access token is still valid and can be used until its original expiry date.