Question Images not displayed on Facebook
- Norsk Jernbaneklubb
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 2
22 hours 53 minutes ago #3627
by Norsk Jernbaneklubb
Images not displayed on Facebook was created by Norsk Jernbaneklubb
This message contains secure information
Please Log in to join the conversation.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1879
- Thank you received: 124
7 hours 48 minutes ago #3628
by Ruud van Lent
Replied by Ruud van Lent on topic Images not displayed on Facebook
Hi Frode,
I checked both sites. both have ochOpenGraph installed and activated, but because the homepage is not an article (like a featured articles view), there is not image found.
So what happens next is that ochOpenGraph would use the fallback image, but that is not configured?
I know this because when yougo to the page source (ctrl-u in your browser), then you see the og: tags set. When you search that page for og:image then you will see that is is not set.
What happens when you share this page on facebook is that facebook first eads the og: tags and uses these, but because to og:image is missing it will try to find a suitable image itself on the page, this can be the log, or another image. if that image is suitable (facebook checks amongst others the size and dimensions), then it will be displayed.
So how to solve this?
You either configure a fallback image in ochOpenGraph: this image will be used when no (suitable) image is found. This is advised to always configure.
and you go to your home menu and then in tab 'ochOpenGraph Integration' you set the image that should be used on the home menu.
now best to check if this is now working is by clearing cache (if enabled) and check the page source for og:image.
Do not test with sharing on facebook as facebook caches what you shared so if it was not okay and you fixed it, then facebook will still display the wrong info / image.
You can use the facebook share debugger to clear the cache, but looking directly at the page source is easier
can you give that a try?
I checked both sites. both have ochOpenGraph installed and activated, but because the homepage is not an article (like a featured articles view), there is not image found.
So what happens next is that ochOpenGraph would use the fallback image, but that is not configured?
I know this because when yougo to the page source (ctrl-u in your browser), then you see the og: tags set. When you search that page for og:image then you will see that is is not set.
What happens when you share this page on facebook is that facebook first eads the og: tags and uses these, but because to og:image is missing it will try to find a suitable image itself on the page, this can be the log, or another image. if that image is suitable (facebook checks amongst others the size and dimensions), then it will be displayed.
So how to solve this?
You either configure a fallback image in ochOpenGraph: this image will be used when no (suitable) image is found. This is advised to always configure.
and you go to your home menu and then in tab 'ochOpenGraph Integration' you set the image that should be used on the home menu.
now best to check if this is now working is by clearing cache (if enabled) and check the page source for og:image.
Do not test with sharing on facebook as facebook caches what you shared so if it was not okay and you fixed it, then facebook will still display the wrong info / image.
You can use the facebook share debugger to clear the cache, but looking directly at the page source is easier
can you give that a try?
Please Log in to join the conversation.