bitbull-team / magento2-module-instagramwidget

Display in Magento 2 the latest photos from an Instagram account
25 stars 13 forks source link

Square images #6

Closed gabrielecontitaguali closed 6 years ago

gabrielecontitaguali commented 6 years ago

Dear,

I installed your module on this 2.1.2 installation but when i select squared images no feed is showing.

I don't know if this is related to magento's version.

Hope the developer can help: :)

Thank you

nuovecode commented 6 years ago

Hi! Any error in console?

lorenaramonda commented 6 years ago

Hi @gabrielecontitaguali, when you say

i select squared images

you mean that you unchecked "Non square media:" checkbox into the migrations tab under manage client section at https://www.instagram.com/developer/?

And then, are you still experiencing the error? because the link you provide seems to have instagram feed working right now.

Thank you for your feedback!

gabrielecontitaguali commented 6 years ago

Dear,

sorry for late reply.

It seems like the image link is wrong. @lorenaramonda the Non square media is checked as the image below: 1

These are my settings on website backend:

screenshot 2018-02-22 16 40 22

This is the error in console: screenshot 2018-02-22 16 43 14

What I noticed is that if in the link we change the s320x320 with s150x150 then image appears:

screenshot 2018-02-22 16 43 54

screenshot 2018-02-22 16 44 23

Right now the issue is live on the website.

lorenaramonda commented 6 years ago

Ok, yes. This happens since a couple of months when Instagram changed its URLs references. We used a trick to have squared picture at a higher resolution (320x320px), we get that by replacing 150 with 320 (https://github.com/bitbull-team/magento2-module-instagramwidget/blob/master/view/frontend/web/js/InstagramWidget.js#L73), but now this is not possible anymore because image URL throws a 403 error.

So I think we might switch again to the previous code, where that replacement was not done but squared images were just 150x150px, or we may considering a solution like this: https://humaan.com/blog/bigger-square-thumbnails-from-the-instagram-api/

Me and @nuovecode will get back soon with updates ;)

lorenaramonda commented 6 years ago

Hi @gabrielecontitaguali it should be fixed now, please check 4.3.1 version :)

lorenaramonda commented 6 years ago

I set this as closed due to inactivity. The new version has been test and solve this problem. In case open another issue 🙂