Instagram API changes?


#1

Anyone up on the status of plugins like https://github.com/artifex404/grav-plugin-instagram with the changes to the Instagram API?

Do they still work?


#2

Hard to say. Did you try asking the author?


#3

Instagram now requires you to have an access_token.

Login in to Instragram Developer page and create a new client. Fill in the info.

Use this OceanWP to obtain your access_token.

You can view their page on how to obtain an Instagram access token as well.


#4

Appreciate the reply. @duceduc. I have had a quick look through the documentation and created a test client. The URL provided by the instead API generates a feed, though the Grav test site (timeout?) generates the following error

Server Error
Sorry, something went terribly wrong!

0 - An exception has been thrown during the rendering of a template ("Error while trying to download (code: 400): https://api.instagram.com/v1/users/self/media/recent/?access_token=************&count=8 ").

For further details please review your logs/ folder, or enable displaying of errors in your system configuration.'

Appreciate any suggestions and I will try to dig deeper…

[I have removed the instagram access token and preached with ‘************’]


#5

Code: 4 may possible be “The access_token provided is invalid.”
With the url you provided, input your access token and access it via the browser. Do you still get an error?


#6

Appreciate the reply @duceduc. I can access the Instagram data directly via the URL generated (above with API key) — which has me a little stumped.

Only thing I can think of for now is that I am doing testing locally (using MAMP), and the domain for the API key is different (the site is not on a remote server/web accessible domain I registered to create the access token). I have not had a chance to test the site yet on a remote server…