WordPress: How to change the image shown on Facebook

You may notice that when you share your blog link on social media such as Facebook, that an image is shown. But how do you control which image is displayed? Well, read on!

Please note: this guide covers the Yoast SEO plugin only. If you are using a different SEO plugin, you may need to follow different steps.

As part of our WordPress migration services, we always install the Yoast SEO plugin. The reason for this is that it handles all kinds of SEO features for your site. One such feature is the ability to set a specific image for your homepage or any blog post when that link is shared on Facebook.

How to enable Facebook images

1. Go to SEO > Dashboard > Features and enable this option:

2. Click “Save changes” at the bottom of the page.

3. Now go to SEO > Social then click the “Facebook” tab. Make sure that this feature is enabled:

This will allow Facebook to display the featured image from any post. However, you can also set a default image on this page which will be displayed if there are no images in the post itself.

How to change the image on the homepage

You can also set an image, title and description for your homepage by using the following options:

Yoast SEO homepage Facebook settings

It is worth noting that Facebook doesn’t always display the new image right away. So if you want to preview how Facebook will show your link, open up a URL in the Facebook Debugger. For example, click here to see how https://www.pipdig.co looks when we add it to the debugger.

How to change the image on a specific blog post

As well as editing the image for the homepage, you can also select an image which you’d like to show on Facebook when sharing a blog post. When editing the blog post, scroll to the bottom of the post editing screen and you should see the box shown below.

Click the icon which is highlighted in the image above, and this will allow you to upload an image which will be shown on Facebook.

Please note, we can’t offer support for the Yoast SEO plugin, however they are able to help you over at he support forum.

If this guide helped you out, why not give us a little like us on Facebook 🙂

Was this article helpful?


  1. Dannyo

    The Advanced features on my settings is already enabled.
    But yet, that option How to change the image on the homepage in frontpage settings is no more available.
    I managed to do it by editing the yoast settings for the front page itself (using your How to change the image on a specific blog post),
    But I was wondering, if one shares another page that is not the home page and it has multiple images, wont the problem repeat ?

    1. Phil (pipdig)

      You can also set an image for the pages by using the Yoast settings on each page. There should be a Yoast section near the bottom of the page editor, much like blog posts.

      1. Dannyo

        Yes, I figured that out.
        But I have already set it up for the home page.
        Will that take care of the entire site pages/posts that have multiple images or no images?

        1. Phil (pipdig)

          The homepage setting will just work on the homepage. However, it’s worth noting that Yoast will use either the first image in the post/page or the featured image if you don’t set a specific image. So you might not need to set one manually for every other page.

  2. Dannyo

    I am using the latest YOAST as at today and under the SEO>Social>Facebook Tab, the option to add Frontpage settings Title, Description and Image used in the Open Graph meta tags for the front page is no more available.
    How can I set this?
    I dont want to use another plugin.


    1. Phil (pipdig)

      Hi Dannyo, it sounds like the “Advanced” feature isn’t enabled in Yoast. I’ve added some extra information to the steps above in “How to enable Facebook images”. Let me know if that works for you.

Leave a comment

The link to your website will be visible to support staff only. It will not be shown publicly.