What picks images for image meta tags?
-
- An image served by wordpress
- A reference to an instagram post
The article has the following image-related meta-tags:
<meta property="og:image" content="http://badges.instagram.com/static/images/ig-badge-32.png" /> <meta name="twitter:image" content="https://steinarbang.files.wordpress.com/2017/08/1503826212471.jpg?w=640" />
Why is the instagram badge picked for facebook, rather than the real image?
This causes a diaspora share of the blog post to display a fairly useless instagram icon.Is there a way to adjust what image is picked?
The blog I need help with is: (visible only to logged in users)
-
The first article of this topic got broken and there doesn’t seem to be a way to edit it. I tried to add HTML tags and seem to have missed something.
The blog post where the wrong image is picked, is: https://steinar.bang.priv.no/2017/08/29/til-minne-om-kaninen-daisy/
-
Hi there,
The
og:imageis usually your featured image. If no featured image is set, the first usable image in the post will be used, or else the site icon. For an image to be considered usable it must be at least 600px wide:https://wordpress.com/support/facebook-image-thumbnail/#image-thumbnail-problems-faq
In this case you don’t have a featured image, the image in the post is only 300px wide, and your site doesn’t have a site icon set, so our system selected the Instagram icon from the embedded Instagram post as a fallback. This is a random selection from whatever is visible on the page in absence of anything matching the preset criteria.
When this happens you can try running the post URL through Facebook’s debugger at https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fsteinar.bang.priv.no%2F2017%2F08%2F29%2Ftil-minne-om-kaninen-daisy%2F to force it to re-check the post. I did it for this post and in this case it updated to the photo at the top of your post, so any new shares on Facebook should now show that photo.
But the only way to avoid something like this happening again is to set a featured image, or to make sure at least one image in your post is bigger than 600px wide.
I’d also recommend you set a site icon for your site in the Customizer that will be used as a fallback if there aren’t other images available.
-
kokkieh, thanks! :-)
I’ll make sure, I either have a featured image or make sure the image is more than 300px wide.
- The topic ‘What picks images for image meta tags?’ is closed to new replies.