Fixing Yoast SEO Social Image Problems: Why Your Open Graph or Twitter Image Isn't Showing
Content
If you've ever shared a link only to find the wrong image appears on Facebook, Twitter, or WhatsApp, you're not alone. Incorrect social media preview images are one of the most common issues reported by users of the Yoast SEO plugin. This guide will walk you through why this happens and the most effective solutions to get your preferred images showing correctly.
Why Do Social Images Show Incorrectly?
Social platforms like Facebook and Twitter use 'scrapers' to read specific meta tags from your webpage's code to generate link previews. The primary tag for the image is og:image for Facebook (and many other platforms) and twitter:image for X (formerly Twitter). When the wrong image appears, it's typically due to one of several reasons:
- Caching: Your website, your browser, or the social platform itself has stored an old version of the page.
- Image Source Conflict: Another plugin or theme is outputting conflicting Open Graph tags.
- Incorrect Configuration: The social image hasn't been set properly within Yoast SEO's settings for the specific page or site-wide.
- Crawler Issues: The social platform's crawler cannot access or process the image you've specified.
How to Troubleshoot and Fix Social Image Issues
1. Clear All Caches
This is the most common fix. You must clear multiple caches for changes to take effect:
- WordPress/Site Cache: Clear any caching from plugins like WP Rocket, W3 Total Cache, or from your hosting provider's dashboard.
- Social Platform Cache: Use official debugging tools to force the platform to re-scrape your page:
- Facebook Sharing Debugger
- LinkedIn Post Inspector
- X (Twitter) Card Validator (Note: This tool may require login)
2. Verify Your Yoast SEO Social Settings
Ensure the image is set correctly in the right place. The hierarchy for social images typically is:
- Individual Page/Post Image: When editing a post or page, scroll down to the Yoast SEO meta box. Click on the 'Social' tab. Here, you can upload a specific image for both Facebook and X (Twitter). This overrides all other settings. If you change a post's featured image later, you must also update the image here manually.
- Site-Wide Default Image (Free Version): You can set a default fallback image that is used when no other image is found. Go to Yoast SEO > Settings > Media and set your 'Facebook Image' and 'X Image'.
Note: The free version of Yoast SEO does not allow setting unique default images for custom post types; this is a premium feature.
3. Check for Plugin or Theme Conflicts
If another plugin or your theme is also generating Open Graph tags, it can create conflicts, causing social platforms to see duplicate or incorrect tags.
- Identify the Conflict: Temporarily disable other SEO, social media, or caching plugins one by one. After disabling each one, check your page's source code (right-click > 'View Page Source' and search for
og:image). If the incorrect tag disappears, you've found the conflict. - Resolve the Conflict: Once identified, check the conflicting plugin's settings for an option to disable its Open Graph output. This is the preferred method, as it allows Yoast SEO to handle the tags exclusively.
4. Confirm Image Specifications
Social platforms have specific requirements for images. Using an incompatible image can cause it to be ignored.
- Format: Use JPG or PNG. SVG files are not supported for social media previews.
- Size: The recommended size is 1200 x 630 pixels for a landscape ratio. While you can use other ratios, they may be cropped automatically by social platforms in ways you can't control through Yoast SEO alone.
- Availability: Ensure the image URL is publicly accessible and not blocked by server security rules or .htaccess files.
When the Issue Isn't Yoast SEO
Sometimes, the problem occurs even though Yoast SEO is outputting the correct meta tags in your page's source code. If you can verify the correct og:image and twitter:image tags are present but platforms still show the wrong image, the issue almost always lies with the platform's cache or crawler. In these cases, using the debuggers linked above is the only solution.
By methodically working through these steps—clearing caches, checking settings, looking for conflicts, and verifying image specs—you can resolve most social image preview issues and ensure your content shares exactly as you intend.
Related Support Threads Support
-
Social Image Preview on all of my sites are not working.https://wordpress.org/support/topic/social-image-preview-on-all-of-my-sites-are-not-working/
-
tag is pointing to an incorrect imagehttps://wordpress.org/support/topic/tag-is-pointing-to-an-incorrect-image/
-
Wrong Image Appearing When Sharing Page on WhatsApphttps://wordpress.org/support/topic/wrong-image-appearing-when-sharing-page-on-whatsapp/
-
OG Image is displayed while sharing on social mediahttps://wordpress.org/support/topic/og-image-is-displayed-while-sharing-on-social-media/
-
Allow AVIF (image format)https://wordpress.org/support/topic/allow-avif-image-format/
-
Facebook Featured Imagehttps://wordpress.org/support/topic/facebook-featured-image-7/
-
Change picture in search presentationhttps://wordpress.org/support/topic/change-picture-in-search-presentation/
-
OG image issue with Woocommerce Shop Pagehttps://wordpress.org/support/topic/og-image-issue-with-woocommerce-shop-page/
-
Whatsapp image to big instead of a sidehttps://wordpress.org/support/topic/whatsapp-image-to-big-instead-of-a-side/
-
Yoast Posting Incorrect OG:IMAGE Taghttps://wordpress.org/support/topic/yoast-posting-incorrect-ogimage-tag/
-
Social Preview Optimization Not Workinghttps://wordpress.org/support/topic/social-preview-optimization-not-working/
-
Og meta image not visiblehttps://wordpress.org/support/topic/og-meta-image-not-visible/
-
Problemas de visualizacion en algunos dispositivos movileshttps://wordpress.org/support/topic/problemas-de-visualizacion-en-algunos-dispositivos-moviles/
-
Open Graph image on dynamic business listing pageshttps://wordpress.org/support/topic/open-graph-image-on-dynamic-business-listing-pages/
-
Default Social Imagehttps://wordpress.org/support/topic/default-social-image/
-
Preview the appearance of the snippet when editing the materialhttps://wordpress.org/support/topic/preview-the-appearance-of-the-snippet-when-editing-the-material/
-
CPT social image & excerpt not displaying on Twitter, but do on Facebookhttps://wordpress.org/support/topic/cpt-social-image-excerpt-not-displaying-on-twitter-but-do-on-facebook/
-
URL link not displaying correctly on social mediahttps://wordpress.org/support/topic/url-link-not-displaying-correctly-on-social-media/
-
OG:Image issuehttps://wordpress.org/support/topic/ogimage-issue-5/
-
Twitter showing the smaller image with OGhttps://wordpress.org/support/topic/twitter-showing-the-smaller-image-with-og/
-
Cropping featured images like 1:1 to 1200 x 630 in og:imagehttps://wordpress.org/support/topic/cropping-images-like-11-to-1200-x-630-for-facebook/
-
Social Appearance Templates – customize image sizehttps://wordpress.org/support/topic/social-appearance-templates-customize-image-size/
-
og:imagehttps://wordpress.org/support/topic/ogimage-15/
-
choose the default image for linkedinhttps://wordpress.org/support/topic/choose-the-default-image-for-linkedin/
-
[NSFW] Feature Image Split in Two when Sharing Linkshttps://wordpress.org/support/topic/feature-image-split-in-two-when-sharing-links/
-
Which image is used in Social Mediahttps://wordpress.org/support/topic/which-image-is-used-in-social-media/
-
Wrong og:imagehttps://wordpress.org/support/topic/wrong-ogimage-3/
-
How to update a photo og:imagehttps://wordpress.org/support/topic/how-to-update-a-photo-ogimage/
-
Unable to use SVG files for social media cardshttps://wordpress.org/support/topic/unable-to-use-svg-files-for-social-media-cards/
-
Where to change social icon & titlehttps://wordpress.org/support/topic/where-to-change-social-icon-title/
-
Yoast plugin is not showing featured image or social appearance on social platfohttps://wordpress.org/support/topic/yoast-plugin-is-not-showing-featured-image-or-social-appearance-on-social-platfo/
-
Issue with company logo on iphonehttps://wordpress.org/support/topic/issue-with-company-logo-on-iphone/
-
Yoast SEO – X (twitter) Image not showing on posthttps://wordpress.org/support/topic/yoast-seo-x-twitter-image-not-showing-on-post/
-
og:image URL could not be processed as an image may be corrupted invalid formathttps://wordpress.org/support/topic/ogimage-url-could-not-be-processed-as-an-image-may-be-corrupted-invalid-format/
-
Twitter Card enabled, code is in view page source, but not workinghttps://wordpress.org/support/topic/twitter-card-enabled-code-is-in-view-page-source-but-not-working/
-
Product Category image showing on twitter link previews instead of product imagehttps://wordpress.org/support/topic/product-category-image-showing-on-twitter-link-previews-instead-of-product-image/
-
Only shared url with https shows the social imagehttps://wordpress.org/support/topic/only-shared-url-with-https-shows-the-social-image/