Wrong Image or Title When You Share Your Website Link? How Link Previews and Open Graph Tags Work
Your link shows the wrong photo, an old title or no preview. Using Meta's documentation, the Open Graph protocol and Rank Math's source, here is what builds a link preview, why it goes wrong and a ten-minute check.
zabil
You paste your website link into a post or a chat, and the preview shows the wrong photo, an old title, or nothing at all. That preview is built from a few lines in your page’s code called Open Graph tags, which a crawler reads when someone shares your link. This article covers what Meta and the Open Graph protocol document, how WordPress with Rank Math chooses the image (checked in the plugin’s source), and a short order of fixes.
One limit first. Meta’s crawler page says its crawler fetches links “shared on one of Meta’s family of apps, such as Facebook, Instagram, or Messenger.” WhatsApp is also a Meta app, but the Meta pages we read do not mention it, and we found no WhatsApp document describing how its previews are built. We also did not read LinkedIn’s or X’s documentation. If one app shows something different, send the link to yourself and test.
What a link preview is made of
The Open Graph protocol lists four required properties for every page: og:title, og:type, og:image and og:url. Optional ones include og:description, og:site_name and og:locale. Meta explains what happens without them: the crawler “uses internal heuristics to make a best guess about the title, description, and preview image for your content.”
Meta’s own advice on the basics:
og:urlshould be “the undecorated URL, without session variables, user identifying parameters, or counters.”- Meta describes
og:titleas “The title of your article without any branding such as your site name.” og:descriptionis “usually between 2 and 4 sentences.” The Open Graph protocol defines it as “A one to two sentence description of your object.” A short, front-loaded description is the safe choice.
The og:url rule matters if you share links with tracking parameters. Our guides to UTM links and canonical URLs explain how to keep the clean address as the main one.
Why the image is wrong, small or missing
Meta’s Link Sharing FAQ answers the common cases:
- Image does not show the first time: “Images are cached asynchronously, so the image may not render the first time someone shares your content.” Pre-cache it with the Sharing Debugger, or add
og:image:widthandog:image:heighttags. - White box: the original image is no longer available, is too big, or could not be fetched. Meta says the image should be no bigger than 8mb and served with less than a few seconds of latency. If you change the image, do not delete the old one, or existing shares show the white area.
- Small square: “Images smaller than 600 x 315 pixels but larger than 200 x 200 pixels will be rendered with a small, square image.”
- Cropped: many factors decide the crop, such as centring on faces it detects. For large images, Meta says to keep “as close to 1.91:1 aspect ratio as possible”.
- No preview at all: “Your link may have been flagged by our content filtering system”, and Meta points to a report form.
- Relative URLs: Meta says “All URLs must be absolute”, so write full addresses in
og:imageandog:url.
For sharp display on high-resolution devices, Meta’s best-practices page suggests images at least 1080 pixels wide. Rank Math’s own settings text recommends 1200 x 630 pixels.
Why an old image or title keeps showing
Meta documents three separate caches:
- The image: “Images are cached based on the URL and won’t be updated unless the URL changes.” Upload the new image under a new file name instead of overwriting the old one.
- The page: the Sharing Debugger shows which tags the crawler scrapes, plus errors and warnings, and triggers a fresh scrape. Meta says the standard update period is 24 hours.
- Existing posts: changing the tags “only applies to future shares of that link.” To update a post already shared, use Refresh share attachment from the post’s menu. After more than 50 interactions the title cannot be changed.
What your server must allow
Meta’s crawler page lists requirements for FacebookExternalHit: your server must use gzip and deflate encodings; Open Graph properties must come before the first 1 MB of the page; the content must be crawlable “within a few seconds”; and Meta recommends adding its user agent strings or IP addresses to your allow list. Changes to robots.txt can take up to 24 hours to take effect. The page also gives a curl command to simulate the crawler request.
Our reading: a slow page, a security plugin or a firewall rule that blocks unknown bots could produce a missing preview. If you recently changed hosts, see changing web hosting without losing SEO, because Meta’s FAQ notes the crawler returns code 0 if it cannot find an AAAA record after a server change. For CDN rules, see putting your website behind a CDN; for speed, WordPress site slow.
How WordPress and Rank Math pick the image
WordPress core does not print Open Graph tags on your pages: in wp-includes and wp-admin the only file mentioning og:image is a REST API controller, not page output. A plugin or theme does it. On this site that is Rank Math, and we read version 1.0.282’s source.
For a post or page, Rank Math looks for an image in this order: the social image set on that post, the featured image, the first usable image in the content, and finally the Default Social Share Image from its settings. For the front page it tries the image set on that page and the featured image, then the setting named Homepage Thumbnail for Facebook, then the default. Rank Math’s settings text says: “When a featured image or an OpenGraph Image is not set for individual posts/pages/CPTs, this image will be used as a fallback thumbnail”.
Two details from the code: it tries the full, large and medium-large sizes and only accepts an image whose width and height are both between 200 and 2000 pixels, and it only accepts jpeg, jpg, gif, png, webp and avif files. It also prints Twitter card tags; we did not read X’s documentation, so we do not say how X uses them.
A ten-minute check
- Open the page, choose View page source and search for
og:. Confirm title, URL and image are present and absolute. - Paste the URL into Meta’s Sharing Debugger and read the errors and warnings.
- Check the image: at least 1080 pixels wide, under 8mb, close to 1.91:1. Meta’s property list names JPEG, GIF and PNG as image types, so if yours is another format such as WebP, test it rather than assuming.
- Make sure
og:image:widthandog:image:heightare set. Rank Math prints them, and we saw them in this site’s page source. - If you replaced an image, upload it with a new file name.
- Confirm the page loads quickly and is not blocked, then share again. For a post already shared, use Refresh share attachment.
For Instagram specifically, our guide to Instagram SEO covers search rather than link previews.
Sources and limits
This article draws on Meta for Developers: A Guide to Sharing for Webmasters, Meta Web Crawlers, Link Sharing FAQ and Sharing best practices; the Open Graph protocol at ogp.me; and Rank Math 1.0.282’s source and settings text, read on 28 November 2026. The Meta pages carry no date. We did not test previews in WhatsApp, LinkedIn or X, so check each app yourself.
If you want your pages to look right wherever they are shared, tell us about your business. Our social media service covers content and sharing set-up.
Layanan terkait
Baca lebih lanjut
Artikel terkait.
Media Sosial
WhatsApp Business QR Code and Short Link: Set Them Up, Edit the Message and Reset the Code
How the WhatsApp Business app's QR code and short link work, based on WhatsApp's help pages: the default message, what resetting the code does,…
Media Sosial
UTM Links for Small Business: How to Track Instagram, Email and WhatsApp Clicks in GA4
A UTM link tells GA4 where a visit came from. The three parameters to always set, naming rules, mediums that land in the right…