OG Image Not Showing? Here's How to Fix It

You shared a link and got a bare URL, a gray box, or last month's image. Almost every case comes down to a short list of causes. This guide works through them in order, from most to least common, with per-platform notes for WhatsApp, Facebook and Messenger, LinkedIn, X, and Slack.

We only quote limits that platforms document themselves, and we link the official refresh tools that still exist. Where a platform has no official spec or tool, we say so.

Want a quick answer? Paste your URL into the Free OG Image Checker. It fetches your page the way crawlers do and lists what's wrong. We don't store the URLs you check.

Step 1: Is the tag in the HTML the crawler receives?

Link-preview crawlers read the HTML your server returns. Many don't run JavaScript. If a single-page app adds og:image in the browser, the crawler never sees it.

Check with curl, not DevTools:

Replace your-site.com with your own site.

curl -sL https://your-site.com/my-post | grep -i 'og:image\|twitter:'

If nothing comes back, the tag isn't server-rendered. Fixes by stack:

  • Next.js: use generateMetadata or the opengraph-image file convention (guide).
  • SvelteKit: use <svelte:head> and don't disable SSR on that route (guide).
  • Astro, Hugo, Eleventy: the tags must be in the layout (Astro, Hugo, Eleventy).
  • WordPress: an SEO plugin or a wp_head hook must print them (guide).
  • Ghost: your theme must include {{ghost_head}} (guide).

Also check for duplicate og:image tags. A theme and a plugin both printing tags is a common cause of "the wrong image shows."

Step 2: Is the image URL absolute?

og:image must be a full URL: https://your-site.com/og.png, not /og.png. Meta's WhatsApp documentation explicitly describes og:image as an absolute URL. Replace your-site.com with your own site.

Frameworks often produce relative URLs unless you configure a base:

  • Next.js: set metadataBase.
  • Astro: set site and build URLs with new URL(path, Astro.site).
  • Hugo: set baseURL and use .Permalink.
  • Eleventy: prefix with your site URL from global data.

A URL with localhost in it ("og image checker localhost" and "nextjs og image localhost" are common searches) means it was built with a development base URL. Platforms can't reach your machine. Also, our checker and most others refuse to fetch private addresses as a security measure, so test against a deployed URL or a public tunnel.

Step 3: Does the image URL actually load?

Open the image URL in a private window, or run:

Replace your-site.com with your own site.

curl -sI https://your-site.com/og/my-post.png

You want 200 and content-type: image/png (or image/jpeg). Common failures:

  • 404, often an HTML error page served with a 200 status. Check the content-type.
  • Redirect chains, for example http → https → www → CDN.
  • Login walls or bot protection. LinkedIn's help notes that if an image meets the requirements but still doesn't appear, your website may be blocking LinkedIn from pulling the image or the image may be in a protected directory. Firewall rules, "block AI bots" toggles, and preview-deployment password protection often catch preview crawlers too.
  • Encoding. Meta's docs say its crawler only accepts gzip and deflate encodings.

Step 4: Is the image within documented limits?

Platform Documented limits Source
WhatsApp under 600 KB (recommended), ≥ 300 px wide, ratio ≤ 4:1; <head> within first 300 KB of HTML Meta, WhatsApp "Link Previews"
Facebook ≥ 1200×630 recommended; 600×315 for large preview; 200×200 min; max 8 MB; ~1.91:1 Meta, "Images in Link Shares"
LinkedIn min 1200×627; max 5 MB; 1.91:1; under 401 px wide shows as thumbnail LinkedIn Help a521928
X, Slack, Discord, iMessage No current official spec found —

Full details and citations are in the OG image size guide. The safe default that meets all of these is 1200×630, PNG or JPEG, under 600 KB.

Use PNG or JPEG. SVG isn't listed by any of these sources, and WebP and AVIF support isn't documented consistently.

Step 5: Is the platform showing a cached version?

Platforms cache previews. If you fixed the tags but still see the old result, the fix is often already live and the platform just hasn't re-fetched yet.

Official refresh tools that exist today (checked Oct 2026):

  • Meta Sharing Debugger: https://developers.facebook.com/tools/debug/. Enter the URL and re-scrape. Meta documents this for pre-caching and updating images, and Ghost's help docs also recommend it after editing a published post's Facebook card. Meta also documents forcing a scrape through the Graph API.
  • LinkedIn Post Inspector: https://www.linkedin.com/post-inspector/. It shows what LinkedIn extracted, when it last updated its data, and lets you request a re-scrape.

Platforms without an official refresh tool:

  • X: the Card Validator's preview was removed in August 2022 (X developer forum, 2 Aug 2022), and X pointed people to the post composer instead.
  • WhatsApp, Slack, Discord, iMessage: we didn't find an official cache-refresh tool.

For these, the dependable fix is to change the image URL, because a new URL is a new image to every cache. Add or bump a version parameter:

Replace your-site.com with your own site.

<meta property="og:image" content="https://your-site.com/og/my-post.png?v=2" />

Some caches key on the page URL rather than the image URL, so a new image URL doesn't always fix a stale page preview everywhere. In that case, waiting for the platform's cache to expire may be the only option. Platforms don't publish their cache durations.

Platform-specific notes

OG image not showing on WhatsApp

WhatsApp has the most specific documented requirements. Check in this order:

  1. Head position: the <head> with your tags must be within the first 300 KB of the HTML. Big inline scripts, styles, or SVGs above your meta tags can push them past that point. Move meta tags to the top of <head>.
  2. Image size: Meta says the image should be under 600 KB. Compress it, or switch photo backgrounds to JPEG.
  3. Dimensions: at least 300 px wide, with a width/height ratio of 4:1 or less.
  4. Absolute URL for og:image.
  5. Description length: shown on 1–2 lines, and "80 characters will suffice."

What happens to images over 600 KB isn't documented by Meta. Third-party reports vary, so we don't repeat them. Staying under 600 KB is the documented target.

Not showing on Facebook or Messenger

  • Run the URL through the Sharing Debugger and read its warnings. It lists the specific missing or invalid properties.
  • If the first share has no image but later shares do, that's the documented first-share behavior. Add og:image:width and og:image:height, or pre-cache with the Debugger.
  • Check the 8 MB limit and the 200×200 minimum.

Messenger link previews come from Meta's crawler too. We didn't find separate official Messenger documentation, so follow the Facebook guidance.

Not showing on LinkedIn

  • Use Post Inspector to see exactly what LinkedIn extracted.
  • Small preview instead of a large one? Your image is probably under the 1200×627 minimum, and under 401 px wide it shows as a thumbnail.
  • No image at all? Check the 5 MB limit and whether your site blocks LinkedIn's crawler.

Not showing on X (Twitter)

  • Set <meta name="twitter:card" content="summary_large_image"> for a large image. Without a card type you may get a small card or none.
  • There's no official preview tool. Paste the link into the composer (without posting) to see what X renders, or use our checker's X mockup.
  • To force a refresh, change the image URL.

Not showing in Slack

Slack fetches the page when a link is posted. We didn't find an official Slack image-size spec for unfurls. Apply the general fixes: server-rendered tags, absolute URL, a 200 response with an image content type, and no bot blocking.

The full checklist

  1. og:image is in the server-rendered HTML (check with curl).
  2. There's exactly one og:image (no theme and plugin duplicates).
  3. The URL is absolute https://, with no localhost.
  4. The image URL returns 200 with image/png or image/jpeg.
  5. No login, firewall, or bot block on the page or the image.
  6. Image is 1200×630, under 600 KB, PNG or JPEG.
  7. og:image:width/og:image:height are set and correct.
  8. twitter:card is summary_large_image.
  9. For WhatsApp, the <head> is within the first 300 KB of the HTML.
  10. Caches refreshed: Sharing Debugger and Post Inspector where available, or a new image URL (?v=2) elsewhere.
  11. Confirmed with the Free OG Image Checker.

Prevent it next time

Most of these failures come from hand-managed image files: relative paths, oversized exports, images behind auth, and stale caches after edits. A generated image at a stable, absolute URL avoids most of them.

You can build that yourself (see the framework guides above), or use Unfurlkit, the hosted "one URL and done" option. Point og:image at a URL and get a 1200×630 PNG:

<meta property="og:image" content="https://unfurlkit.com/v1/basic.png?title=My%20Post&theme=dark" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

Changing the title changes the URL, which also gives platforms a fresh image to fetch. Add &v=2 if you need to force a new URL without changing the text.

Every image URL needs your key. A Free key gets 10 renders in total (no monthly reset), with a small "unfurlkit" watermark, and needs no card. Pro is $9/mo or $90/yr, with 10,000 renders a month, no watermark, and custom fonts (Inter, Roboto, Playfair Display, JetBrains Mono) and logo. A render is counted only when a unique image is generated and wasn't already cached. Shares and cache hits don't count. Over the limit, images keep rendering. On a signed Free key, images already made keep showing, and new ones get a plain version (your title on the basic card, with the small mark) that doesn't count. Upgrade to Pro for more renders. Upgrade to Pro to remove watermarks from all your images.

FAQ

Which languages and scripts are supported? Right-to-left scripts such as Arabic and Hebrew aren't supported yet at launch.

Why does my OG image show on Facebook but not WhatsApp? WhatsApp's documented guidance is stricter: image under 600 KB and the <head> within the first 300 KB of HTML. Facebook allows up to 8 MB.

Why does the old image still show after I changed it? Platform caching. Re-scrape with the Sharing Debugger or Post Inspector, or change the image URL.

Why does it work in the checker but not in the app? The app may still have a cached copy, or your server may treat that platform's crawler differently (bot rules, geo blocks). Check your firewall logs.

Can I test localhost? No public platform can reach localhost. Deploy a preview or use a public tunnel, and make sure preview protection doesn't block crawlers.

Summary

Work through it in order: the tag is in the server HTML, the URL is absolute, the image loads, it's within documented limits, and caches are refreshed. Most broken previews fail at one of those steps.

See Unfurlkit pricing · Check any page with the Free OG Image Checker.

Updated 2026-10-21

Try it freePricing