Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get long-lived code/access tokens for Instagram Basic Display Api?

Access token is being expired after one hour as it is also mentioned in API documentation. It is not convenient for the users to authorize again after every hour.

Please let me know if there is any other way to get long-lived tokens or refresh the token.

Documentation reference is below: https://developers.facebook.com/docs/instagram-basic-display-api/overview

Thank you

like image 901
Hassam Malik Avatar asked Nov 07 '22 12:11

Hassam Malik


1 Answers

You can now get long-lived Instagram User Access Tokens which are valid for 60 days and can be refreshed. Please note that long-lived access tokens are currently in Beta.

Ref: https://developers.facebook.com/docs/instagram-basic-display-api/guides/long-lived-access-tokens

like image 101
Jón Trausti Arason Avatar answered Nov 26 '22 18:11

Jón Trausti Arason