How To Fix Facebook Incorrect Thumbnail Issue In WordPress

How To Fix Facebook Incorrect Thumbnail Issue In WordPress

Last modified: July 8, 2026

FAQ
Fiverr freelancers

When you share a WordPress post on Facebook and the thumbnail shows the wrong image, the cause is almost always the og:image meta tag. Facebook reads this tag to decide which image to display in a link preview. If the tag is missing, has the wrong value, or if Facebook has cached an older version of it, the thumbnail will be wrong or missing entirely.

The good news is that fixing this does not require any coding. WordPress SEO plugins like Yoast and All in One SEO let you set a specific social image for any post or page, which generates the correct og:image tag automatically. Once you set it, you use the Facebook Sharing Debugger to clear Facebook’s cached version and pick up the new tag.

This guide covers the fix using All in One SEO, the fix using Yoast SEO, how to use the Facebook Debugger, and a manual option for users who do not have an SEO plugin installed. All four methods end at the same place: Facebook showing the correct thumbnail when your link is shared.

One clarification before you start: this fix applies to the og:image tag, which controls thumbnails on Facebook and most other social platforms. It does not affect Google’s featured snippets or how the page image appears in Google Search. Those use different mechanisms and different plugins or schema markup.

Show More

* This button will show the rest of the post and open up an offer from a vendor

Why Does Facebook Not Pick The Right Thumbnail Image

Facebook uses Open Graph (og:image) meta tags to determine which image to show as a thumbnail when a URL is shared. The most common reasons Facebook picks the wrong image are:

  • Multiple images on the page have the og:image attribute set, so Facebook picks one at random or defaults to the largest
  • The featured image dimensions are too small (Facebook recommends a minimum of 1200 x 630 pixels for link previews)
  • No explicit og:image tag is set and Facebook is inferring the image from the page content
  • Facebook has cached an old version of the og:image data from a previous crawl
  • The image is served through a CDN with a long cache header, and Facebook fetched a stale version before your SEO plugin updated the og:image tag
  • The image is in WebP format, which older Facebook crawlers sometimes fail to display — using a JPG or PNG version resolves this

Plugins like Yoast SEO and All in One SEO handle the og:image tag for you, which is the cleanest solution. Without one of these plugins, WordPress does not set og:image automatically, which leaves Facebook to guess based on whatever images it finds on the page.

Fix the Thumbnail Using All in One SEO

All in One SEO (AIOSEO) lets you set a specific social image for any post or page from directly inside the post editor. Here is how to do it with the current version of AIOSEO:

  1. Open the post or page where Facebook is showing the wrong thumbnail.
  2. Scroll down to the AIOSEO Settings box below the post editor. If you do not see it, make sure AIOSEO is installed and activated from Plugins in your WordPress admin.
  3. Click the Social tab inside the AIOSEO Settings box. You will see separate sections for Facebook and Twitter/X.
  4. Under Facebook, click “Use Custom Image.” This overrides whatever image AIOSEO would auto-generate from your featured image or post content.
  5. Upload or select the image you want Facebook to use. Use an image that is at least 1200 x 630 pixels for the best display quality in Facebook link previews.
  6. Save or update the post. The og:image tag on your page now points to the image you selected.
  7. Use the Facebook Sharing Debugger (covered in the next section) to clear Facebook’s cached version of the old image.

If you do not see the Social tab in your AIOSEO Settings box, check that the Social Networks feature is enabled. In your WordPress admin, go to All in One SEO > Feature Manager and confirm “Social Networks” shows as active.

Fix the Thumbnail Using Yoast SEO

If you are using Yoast SEO, you can set a specific Facebook image for any post or page without installing anything extra. Yoast includes a social preview section in its settings box below the post editor.

Open the post where Facebook is showing the wrong image, then scroll down to the Yoast SEO plugin settings box. Click the Social tab (it looks like a share icon). You will see sections for Facebook and Twitter/X. Under the Facebook section, click the image area to upload or select a specific image for Facebook to use as the thumbnail. Choose an image at least 1200 x 630 pixels.

Save or update the post. Then use the Facebook Sharing Debugger (next section) to clear the cached version Facebook already has stored.

Use The Facebook Debug Tool

If you’ve already set the correct thumbnail through Yoast or All in One SEO but Facebook is still showing the old image, the issue is Facebook’s cache. Facebook stores a snapshot of a page’s Open Graph data and doesn’t automatically refresh it when the page changes.

To force Facebook to re-read the current og:image tag:

  1. Go to the Facebook Sharing Debugger (you need a Facebook account)
  2. Paste the full URL of the WordPress post into the URL field
  3. Click Debug to see what og:image data Facebook currently has cached
  4. Click Scrape Again to force Facebook to re-crawl the URL and pick up the updated og:image tag
  5. Check the preview image in the “Link Preview” section to confirm the correct thumbnail is now showing

If the wrong image still appears after scraping, double-check that the og:image tag on the page itself is correct by viewing the page source and searching for “og:image”. The Debugger reads whatever tag is currently on the live page, so if the tag is wrong there, no amount of scraping will fix the preview.

Set og:image Without an SEO Plugin

If you are not using Yoast, All in One SEO, or any other SEO plugin, WordPress does not add og:image tags automatically. You can add the og:image tag manually for your entire site by editing your theme’s functions.php file.

The simplest approach using functions.php:

function custom_og_image() {
    if (is_singular() && has_post_thumbnail()) {
        $image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
        echo '<meta property="og:image" content="' . esc_url($image[0]) . '">';
    }
}
add_action('wp_head', 'custom_og_image');

Add this code to your theme’s functions.php file (or a child theme’s functions.php). Once saved, any post or page with a featured image will have an og:image tag pointing to that image. Facebook will pick it up on the next crawl, or you can force it immediately using the Facebook Sharing Debugger.

This manual approach works but has limitations: it only uses the featured image, it does not let you set a different image per post, and if you ever switch themes you will lose the code. An SEO plugin handles all of this automatically and is the better long-term solution for any site that regularly shares content on social media.

Final Word: How to Fix the Wrong Facebook Thumbnail in WordPress

The fastest fix is to set the social image explicitly in Yoast SEO or All in One SEO on the specific post or page. Once set, use the Facebook Sharing Debugger to clear the cached og:image data and confirm the new thumbnail is displaying correctly. Neither step requires any coding knowledge.

If you are not using an SEO plugin, the manual functions.php snippet above adds a basic og:image tag using your featured image. It is not as flexible as a plugin, but it works for sites that need a quick fix without adding another plugin to the stack.

For users who share content frequently, setting social images in bulk is one of the most practical reasons to use an SEO plugin. It handles og:image, og:title, and og:description for every post in one place, which is more reliable than letting Facebook infer those values from the page content.

Recap:
Save 4 Later
Email liked links to yourself

    Stay Updated with WordPress Insights

    Get the latest WordPress tips, theme reviews, and industry deals delivered to your inbox.