Instagram widget stopped working

1 reply · opened Jan 20, 2021

GgorkemdurJan 20, 2021

Hi,

Instagram widget stopped working. As far as I see, you call to a url like https://www.instagram.com/username/?__a=1 which is https://www.instagram.com/dilekita/?__a=1 in my case.

When I visit this link manually in a browser it works and respond with json or sth else.

However, while going from your code it responds with 302 and redirects to a login page.

Please note that the widget in your demo is also broken further more.

SSemicolon WebSTAFFJan 21, 2021

Hello,

Instagram APIs have been changed and restricted considerably. Consider using the updated js/plugins.min.js File with this one: https://drive.google.com/file/d/1vconePqhxq48GsF1GvQ75GGzgBiqConM/view?usp=sharing .

  1. Follow steps 1 - 3 here: Facebook Basic Display API guide.

  2. Use the User Token Generator to create a starting access token.

Then add the following code in the HTML File just after the js/plugins.min.js JS File Linking:
[ch_pre]var scwInstagramToken = 'your-access-token';[/ch_pre]

This should work fine for now. But this is strictly experimental and we are thinking about removing the Instagram Widget from the Future versions of Canvas as the Instagram APIs are now heavily restricted.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard