Guides · Updated 2026-12-04
Open Graph image not showing: a checklist that finds the cause
You paste a link into a chat or a post and the preview shows no image, a tiny thumbnail, the wrong picture, or an old one. The page looks fine in your browser, so what is going on? The answer is that link previews are built by a crawler that reads your HTML once, without running most of your scripts or logging in, and then caches what it found.
Almost every missing preview comes from one of a small number of causes. This checklist goes from the most common to the least, and each step tells you how to confirm it before you change anything.
1. The og:image tag is missing from the raw HTML
Open your page, choose View Source, not Inspect, and search for og:image. View Source shows exactly what a crawler receives. If the tag is not there, but it appears in the inspector, then it is added by JavaScript after load. Most preview crawlers do not run scripts, so they never see it.
The fix is to put the Open Graph tags into the HTML that your server or build step sends. In a single-page app this usually means pre-rendering or server rendering the head. A framework's metadata API generally does this for you.
<meta property="og:title" content="Page title">
<meta property="og:description" content="One sentence summary.">
<meta property="og:image" content="https://example.com/og/home.png">
<meta property="og:url" content="https://example.com/">2. The image URL is relative
The og:image value must be a full address that starts with https://. A relative path such as /og/home.png is ignored by many crawlers, because they have no page context to resolve it against. Use the absolute URL on your own domain, and make sure it uses https, since some platforms refuse plain http images.
3. The crawler cannot fetch the image
Paste the image URL into a private browser window. It should load immediately with no login, no redirect to a sign-in page and no hotlink protection error. Check these common blockers.
- A firewall, bot protection or CDN rule blocking unknown user agents, which returns a challenge page to the crawler.
- Hotlink protection that only allows requests with your own domain as the referrer.
- A staging site behind a password, which is a frequent cause when testing before launch.
- An image path that redirects several times, or ends in an HTML error page with a 200 status.
- A very large file. Aim for well under 1 MB, and smaller if WhatsApp matters.
4. The image is the wrong shape, size or type
If the preview shows only a small thumbnail, the platform judged the image too small or the wrong ratio for the large card. Our size reference lists the recommended dimension for each platform, and the safe default is one wide image of the recommended Open Graph size, saved as JPG or PNG.
Avoid formats that crawlers may not read. SVG and animated WebP are not reliably supported for previews, and AVIF is patchy. A plain PNG or JPG is the safe choice. Declaring og:image:width and og:image:height also helps the first share render without waiting to download the image.
5. The platform cached an old or empty result
This is the cause when everything looks right in your source but the preview is still wrong. Platforms store the result of the first fetch, sometimes for days. If the first crawl happened before you added the image, the empty preview stays until the cache is refreshed.
Use each platform's own tool to re-scrape. Facebook has the Sharing Debugger with a Scrape Again button. LinkedIn has the Post Inspector. Slack and Discord refresh when a link is posted again after their cache expires, and adding a harmless query string to the URL, such as ?v=2, can force a new fetch. Our guide on previews that do not update covers this in depth.
6. Conflicting or duplicate tags
Two og:image tags on the same page, a plugin adding its own set on top of yours, or a theme that outputs a default image can all confuse the crawler. It usually picks the first, which may be an old placeholder. View the source and count the og:image occurrences. There should be one, or a deliberate list of images, not accidental duplicates.
Also check that og:url matches the canonical address of the page. A mismatch can cause platforms to fetch metadata for a different URL than the one you shared.
7. The page redirects or returns an error to crawlers
If the URL you share redirects to a login, a cookie wall, a region page or a bot challenge, the crawler reads that page instead of yours. Test with curl from a terminal, or with a header-checking tool, and confirm that your page returns a 200 status with the real HTML and the tags in the head.
8. Platform-specific quirks
A few differences are worth knowing when only one platform fails.
- Facebook and Instagram use the Facebook crawler and cache hard. Always re-scrape in the Sharing Debugger after a change.
- LinkedIn is the slowest to refresh, and Post Inspector is the reliable way to clear it.
- X reads its own twitter tags first and falls back to Open Graph. For the large image layout it needs twitter:card set to summary_large_image.
- WhatsApp is strict about file size and often skips large images.
- Slack and Discord fetch on first post and cache per URL, so test with a fresh URL variant.
A fast diagnostic order
When you want an answer quickly, take this route: view the raw source for the tag, open the image URL in a private window, check for a redirect or block, then re-scrape on the platform that is failing. Nine times out of ten the problem is found in the first two steps.
Was this guide helpful?
Questions
Why does my Open Graph image work in the browser but not in the preview?
Preview crawlers read the raw HTML and do not run most scripts, so a tag added by JavaScript is invisible to them. Check View Source, not the inspector.
Does og:image need to be an absolute URL?
Yes. Use a full https address. Relative paths are ignored by many crawlers.
How do I clear a cached link preview?
Use the platform's own tool: the Facebook Sharing Debugger, or LinkedIn Post Inspector. For others, share a URL with a new query string such as ?v=2.
Try it
More guides
- How to add a favicon to your website
- Favicon formats: ICO vs PNG vs SVG
- The Apple touch icon: size, format and common problems
- Favicon not showing or not updating: nine fixes
- Maskable icons explained: the safe zone and how to use it
- The web app manifest: what each field does
- How to design a favicon that is readable at 16 pixels
- How to get your favicon to show in Google Search results
- How to test Open Graph tags before you deploy
- Favicon setup in Next.js, Vite and React