Skip to main content

Social Media

Link Preview Not Showing? How to Fix Open Graph Tags

Why a shared link shows no image or the wrong title, which Open Graph tags control the preview, how to test them like a crawler, and how to clear a cached card.

By 7 min read

On this page
  1. How a link preview is built
  2. The tags that control the card
  3. Eight causes of a broken preview, and the fix for each
  4. Test the page the way a crawler sees it
  5. Clear the cached preview
  6. Short links and previews
  7. A checklist before you post
  8. Frequently asked questions
  9. Do I need Twitter tags if I already have Open Graph tags?
  10. Why does the same link look different in different apps?
  11. Why does only my homepage have a good preview?
  12. Can I control the preview of a page I do not own?
  13. Summary
  14. Sources

You paste a link into a post or a chat and the card that appears is wrong. The image is missing, the title is the name of your CMS, or the description is the cookie notice. The page itself is fine. The problem is in a handful of tags in the page's <head> that most visitors never see.

This guide explains how apps build a link preview, lists the common reasons one breaks, and shows how to test and fix each cause. The commands were run on 22 November 2026.

When a link is posted or pasted, the app does not screenshot the page. Its crawler requests the address, follows any redirects, downloads the HTML, and reads a few <meta> tags from the <head>. It then downloads the image named in those tags, stores the result, and shows the stored card to everyone who sees the link.

Three consequences follow from that process:

  • The crawler reads the HTML your server sends. It usually does not run JavaScript.
  • The crawler arrives without your login, cookies or location, so it sees what an anonymous visitor would see.
  • The result is cached. Fixing the page does not change a card that was stored yesterday.

Almost every broken preview comes down to one of those three points.

The tags that control the card

Most platforms read the Open Graph protocol. The specification at ogp.me names four required properties: og:title, og:type, og:image and og:url. In practice you also want a description, and a twitter:card tag so that X shows the large image layout.

<meta property="og:title" content="Spring Menu at Harbour Kitchen" />
<meta property="og:description" content="Seasonal dishes from 1 March. Book a table online." />
<meta property="og:image" content="https://example.com/images/spring-menu-1200x630.jpg" />
<meta property="og:image:alt" content="A plate of grilled asparagus on a wooden table" />
<meta property="og:url" content="https://example.com/menu/spring" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Harbour Kitchen" />
<meta name="twitter:card" content="summary_large_image" />

For the image, Facebook's sharing documentation recommends at least 1200 × 630 pixels, a ratio of about 1.91:1, and treats 600 × 315 as the smallest size that still gets the large layout. Use an absolute https:// address. Keep the title short enough to survive truncation, roughly 60 characters, and write the description as one or two plain sentences.

As a working example, this is part of what our own SEO guide sends to a crawler:

<meta property="og:title" content="URL Shorteners and SEO: Redirects, Canonicals and Safe Use"/>
<meta property="og:url" content="https://urlshorter.cc/blog/seo-guide"/>
<meta property="og:site_name" content="UrlShorter"/>
<meta property="og:image" content="https://urlshorter.cc/blog/seo-guide/opengraph-image"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>
<meta property="og:type" content="article"/>
<meta name="twitter:card" content="summary_large_image"/>

Eight causes of a broken preview, and the fix for each

SymptomLikely causeFix
No image at allNo og:image tag on this pageAdd one to the page template, not only to the homepage
No image, tag is presentRelative path or http:// image addressUse an absolute https:// address
No image, address looks rightThe image is blocked for bots, needs a login, or sits behind hotlink protectionLet anonymous requests fetch the file
Small thumbnail instead of a large cardImage is too small, or twitter:card is missingUse 1200 × 630 and set summary_large_image
Wrong title or descriptionTags are copied from a template, or missing so the app guessedSet per-page og:title and og:description
Preview works in the browser inspector but not in appsTags are added by JavaScript after loadRender the tags in the server's HTML
Card shows a login, consent or region pageThe crawler was redirected somewhere a visitor would not beServe the public page to anonymous requests
Fixed, but the old card still showsThe platform cached the earlier versionRefresh the platform's cache (see below)

One more cause is worth checking when everything else looks right: an og:url or canonical tag that points to a different page. Some platforms follow it and build the card from that page instead.

Test the page the way a crawler sees it

View the tags from the command line with a crawler's user agent. This skips your browser, your cookies and any JavaScript:

curl -s -A "facebookexternalhit/1.1" https://example.com/menu/spring | grep -oE '<meta (property|name)="(og|twitter):[^>]*>'

If that prints nothing, the tags are not in the server's HTML, whatever your browser's inspector shows.

Next, check that the image itself can be fetched. Copy the address from og:image and ask for its headers:

curl -sI https://urlshorter.cc/blog/seo-guide/opengraph-image
HTTP/2 200
content-type: image/png

You want a 200 status and an image content type. A 403, a 404, a redirect to a login page or a text/html content type all mean the platform cannot use the file.

If you would rather not use a terminal, the link preview checker does the same thing in the browser. It follows redirects first, reads the Open Graph and Twitter tags from the final page, shows the card they produce, and lists what is missing or likely to be cut off.

Clear the cached preview

Once the tags are right, ask each platform to fetch the page again.

  • Facebook and Messenger: paste the address into the Sharing Debugger in Meta's developer tools and choose to scrape it again.
  • LinkedIn: paste the address into the Post Inspector, which fetches a fresh copy and shows what it found.
  • Apps without a refresh tool: the cache is tied to the exact address. A link that differs in any way, such as a new query parameter or a new short link, is treated as a new address and fetched fresh. Use this sparingly, and keep the canonical address unchanged.

Caches also expire on their own, but the wait can be days.

A short link has no tags of its own. The crawler follows the redirect and builds the card from the destination, so a short link previews exactly as well as the page behind it.

That makes it worth testing the short address, not only the long one:

  • If the redirect chain passes through a tracking domain that blocks bots, the card fails even though the final page is fine. The redirect checker lists every hop.
  • If you edit a saved short link to point somewhere new, platforms may keep showing the old destination's card until their cache refreshes.
  • UrlShorter answers preview crawlers with the same redirect it gives people, and leaves recognised crawlers out of click totals, so pasting a link into a chat does not inflate your numbers. Our link analytics guide explains what the totals include.

For platform-by-platform sharing tactics, see the social media short links playbook.

A checklist before you post

  1. The page returns its tags in the server's HTML, confirmed with curl or the preview checker.
  2. og:image is an absolute https:// address that returns 200 and an image type.
  3. The image is about 1200 × 630 and has og:image:alt text.
  4. og:title and og:description are written for this page.
  5. og:url matches the canonical address of this page.
  6. twitter:card is set to summary_large_image if you want the large layout on X.
  7. The exact link you will share, including any short link, has been tested.
  8. Any platform that showed an old card has been asked to fetch again.

Frequently asked questions

Do I need Twitter tags if I already have Open Graph tags?

Add twitter:card at least. X reads Open Graph values for the title, description and image when its own tags are absent, but the card type decides whether the image is shown large or as a small thumbnail.

Each app crops the image to its own shape, cuts text at its own length, and fetched the page at a different time. The tags are the same; the rendering and the cache are not.

Why does only my homepage have a good preview?

The tags were probably added by hand to one page. Put them in the template that every page uses, with the title, description and image filled in per page.

Can I control the preview of a page I do not own?

No. The card is built from the destination's tags. If the page is not yours, you can only choose which address to share.

Summary

A link preview is a cached copy of a few tags, read by a crawler that sees your page as an anonymous visitor without JavaScript. Put complete Open Graph tags in the server's HTML, point og:image at a large public https:// image, test the exact link you plan to share, and refresh each platform's cache after a fix.

Sources

  • Open Graph
  • link previews
  • social sharing
  • og:image
  • short links