Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renewing User Access Token using Instagram Basic Display

From the looks of the Instagram Basic Display API docs, it looks like both the auth code and access token expire after 1 hour. Is there any way to renew the access token without requiring the user to log in every time?

Link to relevant docs: https://developers.facebook.com/docs/instagram-basic-display-api/overview

like image 435
lem101 Avatar asked Oct 22 '19 09:10

lem101


People also ask

How do I renew my Instagram access token?

Use the GET /refresh_access_token endpoint to refresh unexpired long-lived Instagram User Access tokens. Refreshing a long-lived token makes it valid for 60 days again. Long-lived tokens that have not been refreshed in 60 days will expire.

How do you get the basic display API access token on Instagram?

You can access the token generator in the App Dashboard > Products > Instagram Basic Display > Basic Display tab. 2. Scroll down to User Token Generator and click on Generate Token next to your account.

What can you do with Instagram basic display API?

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.

How do I get Instagram access token for Instagram feed widget?

Go to Dashboard and select Products->Instagram Basic Display->Basic Display. Next, scroll down, and you will see the field Generate Token. Click on the Generate Token field to retrieve Instagram access token WordPress. Once you click on the Generate Token field, log in with your Instagram credentials.


1 Answers

Support for Long-Lived Access Tokens has been added to the Basic Display API.

Here is the documentation: https://developers.facebook.com/docs/instagram-basic-display-api/guides/long-lived-access-tokens

like image 136
minaz Avatar answered Dec 14 '22 15:12

minaz