Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtain Instagram access token and the problem of refreshing it #54

Open
wilson34679 opened this issue Nov 28, 2023 · 0 comments
Open

Obtain Instagram access token and the problem of refreshing it #54

wilson34679 opened this issue Nov 28, 2023 · 0 comments
Assignees

Comments

@wilson34679
Copy link
Collaborator

wilson34679 commented Nov 28, 2023

Follow the steps below to get a long-lived token

1. Getting started

https://developers.facebook.com/docs/instagram-api/getting-started

2. Getting a long-lived access token

App secret and app ID are needed to get the long-lived access token. They can be obtained in the basic app settings, and the fb_exchange_token is the temporary access token obtained from step 1.
https://developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived

Difficulty of refreshing the token

Long-lived tokens will expired in 60 days. However, I could only find a refreshing method for Instagram Basic Display API but not Graph API. Therefore, we currently have to manually acquire a new long-lived token for every 60 days.

This could be a potential way to refresh the access token
https://developers.facebook.com/docs/instagram-basic-display-api/reference/refresh_access_token/?locale=en_US

@Eric-Arellano Eric-Arellano self-assigned this Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants