Let's say you just published an awesome blog post, or you launched a new page on your site... and now you want your street team members to share it to Facebook. Here's something you probably already know: when a link is shared to Facebook, an image will appear attached to the link. This image is called the preview, and having a great preview is critical to catch your viewer's eye and have them click on your link.
So how does Facebook find the image? Here's the jist: when a link is shared to Facebook, Facebook "crawls" the webpage for an image to use based on certain criteria. Sometimes they are spot on, and the preview will look great on Facebook! Other times, Facebook might pull the wrong photo (or no photo at all) which would make the preview look less than ideal. In any case, may want to make changes to your preview to improve its appearance on Facebook.
Luckily for you, there's an easy way to tell Facebook which image you want used in the preview. In the HTML code of your webpage, the "og:image" tag can be used to specify the image that appears when someone shares your content to Facebook. All you need to do is add the following meta tag into your webpage's HTML code (these always go in the header section):
<meta property="og:image" content="YOUR IMAGE LINK GOES HERE">
Here are some image specifications set forth by Facebook which you'll want to know:
If you'd like to change your preview image after it's been shared on Facebook:
Note that updating the image for a URL will not automatically update the preview for old shares. To do this, you must refresh the share as described here: "Facebook's Link Sharing FAQ".
If you're still having trouble with your images not being displayed correctly for your URL, try plugging your image URL in Facebook's Sharing Debugger to check for any errors.
Have a questions? Leave a reply below!