Social Media
Link Preview Not Showing? How to Fix Open Graph Tags
By UrlShorter Editorial7 min read
On this page
- How a link preview is built
- The tags that control the card
- Eight causes of a broken preview, and the fix for each
- Test the page the way a crawler sees it
- Clear the cached preview
- Short links and previews
- A checklist before you post
- Frequently asked questions
- Do I need Twitter tags if I already have Open Graph tags?
- Why does the same link look different in different apps?
- Why does only my homepage have a good preview?
- Can I control the preview of a page I do not own?
- Summary
- 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.
How a link preview is built
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
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.
Short links and previews
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
- The page returns its tags in the server's HTML, confirmed with
curlor the preview checker. og:imageis an absolutehttps://address that returns200and an image type.- The image is about 1200 × 630 and has
og:image:alttext. og:titleandog:descriptionare written for this page.og:urlmatches the canonical address of this page.twitter:cardis set tosummary_large_imageif you want the large layout on X.- The exact link you will share, including any short link, has been tested.
- 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.
Why does the same link look different in different apps?
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
- The Open Graph protocol, for the required and optional properties.
- Meta for Developers: A Guide to Sharing for Webmasters, for image size guidance and crawler behaviour.
- LinkedIn Post Inspector, for refreshing LinkedIn's cached preview.
- RFC 9110: HTTP Semantics, for the status codes used in the image check.
- Open Graph
- link previews
- social sharing
- og:image
- short links