Skip to content
Shareglow

Open Graph fixes · Mastodon

Mastodon link preview not showing

When Mastodon shows a bare URL instead of a card, its crawler either could not fetch your page or found no usable Open Graph tags in the HTML it received. Mastodon draws a card layout with a 1200×630 px image and a title of about 100 characters, and every part of it comes from the og:* tags in your server response.

Diagnosis

Why it happens on Mastodon

Scanner checks: og-title-present, og-image-present, og-image-absolute-url, og-url-present, robots-noindex

The fix

Fix it step by step

  1. Scan the URL: the scanner fetches it server-side like Mastodon's crawler and lists every missing tag.
  2. Allow the Mastodon crawler through your firewall, CDN bot rules and any login wall for the shared URL.
  3. Add og:title, og:description, og:image (absolute https URL) and og:url to the server-rendered <head>.
  4. Deploy, re-scan, and share the link again.
<title>Your page title</title>
<meta name="description" content="A one or two sentence summary of this page.">
<meta property="og:title" content="Your page title">
<meta property="og:description" content="A one or two sentence summary of this page.">
<meta property="og:image" content="https://example.com/og.png">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Your site name">
<meta name="twitter:card" content="summary_large_image">

Check your link on Mastodon

FAQ

Common questions

Why does Mastodon show my link without a preview?

Mastodon found no og:title or could not fetch the page. Check that Mastodon gets HTTP 200 and that the tags are in the HTML, not added by JavaScript.

Which tags does Mastodon need for a card?

og:title, og:image and og:url at minimum, plus og:description (shown up to about 200 characters). The image is drawn at 1200×630 px.