I have been displaying facebook feed on my website using Facebook Graph API, I want to do the same to display Instagram feed. But in last month Instagram totally changed things for developers like it’s not allowing creating clients here in there developer page – https://www.instagram.com/developer/clients/manage/ Now I totally messed up.
I tried Instagram Basic Display API following documentation here but I don’t see a way to display other media fields like comments and likes counts per photo.
So is Instagram Graph API is the solution for this??
If yes then show me the right direction and it will save my time significantly. I also noticed in the doc of Instagram Basic Display API that access token expires in an hour which is not expected.
So is regarding access token, as mentioned in the documentation here, in step 3, is this the right way to generate token and when the token expires?, how to extend it?, I see lack of documentation on extending the token comparing with facebook Graph API’s documentation.
2
Answers
To answer the questions:
https://www.instagram.com/developer/authentication/
Instagram access token expiry time
https://developers.facebook.com/docs/instagram-basic-display-api/overview#instagram-user-access-tokens
Resource:
instafeed.js is a very simple tool once you have the access token.
Instafeed JS not loading
Additional info:
As of 2018, Instagram has been significantly curbing their calls to their API, and now, only Business & Creator accounts are allowed to use their basic-display-api. You can convert your personal profile to Creator or Business here: https://help.instagram.com/2358103564437429
https://developers.facebook.com/docs/instagram-basic-display-api.
The change I think you are talking about is the migration of basic permissions from the legacy instagram api to the new Graph API
https://www.developer-tech.com/news/2019/oct/15/instagram-launches-basic-display-api-deprecate-predecessor/
I hope this helps.
The final answer regarding the issue of short-lived tokens is here https://developers.facebook.com/docs/instagram-basic-display-api/guides/long-lived-access-tokens. Facebook had no plans to make extended tokens for Instagram. They closed a thread on their forums regarding this issue https://developers.facebook.com/support/bugs/3109002399171119/ but decided to make the extended tokens available for 60 days ONLY for Facebook. Now you can have a limited day non-expiring token for Instagram too.