You might be wondering how Facebook choses which thumbnail images to show when someone shares a link on Facebook. It might seem random, but there is a way for you to control which images Facebook uses.
Facebook’s Open Graph allows you to add
<meta> tags to the
<head> section of your site. One of these
<meta> tags is the
og:image tag. It will look something like this:
<meta property='og:image' content='http://www.domain.com/path/to/image.jpg' />
It is possible to add multiple
og:image tags to a page. For each
og:image tag you add, Facebook will add that image to the list of available thumbnails to use each time the page is shared.
og:image Tag on WordPress Sites
If you’re using WordPress, there’s a great SEO plugin that will add 1
og:image tag per page to your WordPress posts & pages. It’s a great place to start, but it won’t fix your problem of multiple images for a Facebook share.
You can open up your header.php file, and write a custom function that pulls all the images attached to that post/page, and inserts them all into their own
However, sometimes Facebook can scrape your site & find many of your images on its own. It just depends on how much control you want.