You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have used this package on a website and ran into an interesting situation. Although things worked as expected for Facebook, Twitter would not grab the correct image. After looking into it our best guess was that although there is an image linked in the og:image tag there was no twitter:image tag.
Hmm, I wonder if maybe Twitter cached the card and that is why we were not seeing the changes reflecting with og:image. I wasn't aware that it used it as a fallback.
Hi there,
We have used this package on a website and ran into an interesting situation. Although things worked as expected for Facebook, Twitter would not grab the correct image. After looking into it our best guess was that although there is an image linked in the og:image tag there was no twitter:image tag.
Although I am not a fan of this, I modified https://github.com/codefog/contao-social_images/blob/master/src/ImageGenerator.php and copied line 91 and just changed og:image to twitter:image and now the twitter card is displaying the correct image.
Is it possible to add support for this natively? Either a checkbox to choose to use OpenGraph, Twitter cards or both? Just brainstorming.
The text was updated successfully, but these errors were encountered: