Need info Facebook is not showing image (sometimes)
- Steven Trooster
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 1
- Ontvangen bedankjes 0
4 maanden 1 dag geleden #3232
door Steven Trooster
Facebook is not showing image (sometimes) werd gestart door 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.
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.
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
4 maanden 1 dag geleden #3233
door Ruud van Lent
Beantwoord door Ruud van Lent in 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)
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)
Graag Inloggen deelnemen aan het gesprek.