Updated code for the Instagram API with token refresh

4 replies · opened Feb 9, 2022

MmadeintomorrowFeb 9, 2022

Hello,

On Themeforest's comment section, I asked for updates about the Instagram API handling to support a token refresh.
I am following up after your message:

We have this code ready. If you would like us to provide you with the updated codes, please visit our Support Forums to Open a Support Ticket and Our Team will get in touch with you.

I would gladly test the new code if it supports refreshing the Instagram API token!

Thank you and have a good day

SSemicolon WebSTAFFFeb 9, 2022

Hello,

Consider using the File attached and replace it with the include/instagram/instagram.php File. Simply add your Initial Access Token in this variable: $initial_token.

Please do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFFeb 10, 2022

We are very eager to have your feedback on this.

MmadeintomorrowFeb 10, 2022

It worked perfectly! Of course I will have to wait a couple of months to make sure the token cache works, but I have no doubts.

I only had to add to the img tag

height: 100%;
object-fit: cover;

to make all images the same height.

Thank you.

SSemicolon WebSTAFFFeb 10, 2022

Hello,

Glad it is working fine. We have tested the Token Refresh on our end and it appears to be working fine for us. But yes we will know this for sure after 60 Days (in the Codes it is set to 58 Days for the token refresh).

Thanks for the suggestions and we will definitely add the improvements.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

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