Need info Facebook is not showing image (sometimes)

More
3 weeks 11 hours ago #3232 by Steven Trooster
Facebook is not showing image (sometimes) was created by Steven Trooster
I noticed that Facebook sometimes doesn't load the image, though the og:image tag has the correct url. I can't seem to pinpoint exactly when it loads and when not, but after turning off the Twitter card tags (since we don't use Twitter anymore), it does load.

What I did notice is that there is a difference between the FB image and the Twitter image
    <meta name="twitter:image" content=" www.ugenda.nl/images/Sterrenkijkavond_Co...pen_Fotografie_1.jpg">
    <meta property="og:image" content=" www.ugenda.nl/images/Sterrenkijkavond_Co...pen_Fotografie_1.jpg">

Note that the Twitter image adds #joomlaImage://local-images/file-name 

I don't know whether other social media platforms like LinkedIn use the Twitter card tags. 

Please Log in to join the conversation.

More
3 weeks 8 hours ago #3233 by Ruud van Lent
Replied by Ruud van Lent on topic Facebook is not showing image (sometimes)
Hi Steven,

although questioned by some, I strongly believe that facebook has difficulties when the #joomlaimage parameter is added to the url: sometimes it works, sometimes not. My best guess is that facebook has different crawlers and dependent on which one used there is a different outcome.

That said: ochOpenGraph always (!) uses Joomla Core Image function to fetch AND scrub the image of this #joomlaimage parameter. The fact that it is set on the twittercard makes me believe that twitter:image tag is set by the template / other extension. Also because when configured the same (e.g. to use the intro image) both the twitter:card and og:image use the same image > they cannot differ as there is only one image used in code for both tags.

But to investigate, can you turn on debug in the ochOpenGraph plugin, visit the page where you see this twitter image with parameter and then send me the resulting log file (in the Joomla core log directory: plg_content_ochopengraph-log.php

You can use ochLogFiles to view / copy the information in this log file.

On your other question: I think the twitter: tags are (possibly) not relevant anymore as they are only used by twitter: mastodon, Linkedin, Bluesky, etc. use the og: tags

Added value is only when you want to have e.g. different titles / descriptions / image set for twitter: with this you can differentiate (as on X there is a different audience that)

Please Log in to join the conversation.