How to get Instagram Access Token 2020
Let’s say you want to put a feed of Instagram posts on the site. Let’s take an example of getting an instagram access token for your application.
Go to Facebook developers tools and create a new application
Enter the created application and go to Settings - Basic. Scroll down and add a platform (site). Then save the settings.
Products – Instagram Basic Display. Create a new app
Set the redirect uri and other links
Add a tester. This must be the Instagram account for which you receive the key.
Go to profile settings in Instagram and accept the invitation.
Using Instagram App Id and Redirect URI, follow the link:
and confirm the authorization
Save the code from the address you were redirected to:
Now you have to make a POST request to https://api.instagram.com/oauth/access_token to obtain a short-term access token. This is what it looks like when you use curl in a console:
curl -d "client_id=INSTAGRAM-APP-ID&redirect_uri=REDIRECT-URI&grant_type=authorization_code&client_secret=INSTAGRAM-APP-SECRET&code=CODE " https://api.instagram.com/oauth/access_token
In return you get json containing access_token
Follow the link using the access_token:
In return, you get json with a long-term key for 60 days.
To update the long-term access key, use the link:
The update should be done while the key is still active.
I'm having trouble trying to do this with angular and node.js, I haven't been able to get it to work. could you help me ?
Sorry, I have never worked with angular and node. Did you solve your problem?
Leave a Comment