Skip to content
Shareglow

Open Graph fixes

Fix missing Open Graph tags

Pick your framework for the exact snippet and the one-tag fix for everything the scanner checks.

Scan my site

Next.js

app/blog/[slug]/page.tsx

Nuxt

<script setup>

Astro

src/layouts/Base.astro

WordPress

functions.php

Shopify

layout/theme.liquid

Fix a broken preview by platform

Small image card

How to fix missing Open Graph tags

  1. Scan your URL to see which tags are missing or wrong.
  2. Open the guide for your framework above.
  3. Paste the snippet where the guide says, replacing the example values with your page's own.
  4. Deploy, then scan again until the errors are gone.
  5. Refresh the platform caches so existing shares pick up the new card.

Why tags go missing

  • The tags are added in the browser. Most crawlers never run JavaScript, so a client-rendered app sends them an empty head.
  • A theme, plugin or layout writes its own tags and overrides yours, or duplicates them.
  • The image path is relative, so crawlers cannot resolve it.
  • A CDN or full-page cache still serves HTML from before your change. Purge it, then scan from the live URL.
  • Crawlers are redirected to a login, consent or locale page that has no tags.

What a complete fix looks like

Every page should send og:title, og:description, og:image (an absolute https URL to a 1200×630 image under 300 KB), og:url matching the canonical URL, og:type, og:site_name and twitter:card set to summary_large_image. The scanner's 33 checks grade exactly this set, so a page with no errors is ready to share.

Each framework guide includes

The file or setting where tags belong, a copy-paste snippet, the steps in order, and a one-tag fix for each scanner check. Apps that render only in the browser can also use the edge snippets on the meta tag generator, which serve crawlers a pre-rendered snapshot.

After the fix

Platforms keep the first card they fetched. The scanner's Refresh everywhere re-scrapes Facebook and versions your image URL. LinkedIn refreshes from its Post Inspector, and X, which retired the preview in its Card Validator in 2022, picks up a URL with a new query string. See refreshing cached link previews.

FAQ

Common questions

Which tags are required for a link preview?

og:title, og:description, og:image and og:url cover almost every platform. Add twitter:card for the large card on X.

My framework is not listed. What do I do?

Use the HTML snippet from the meta tag generator and place it in the head your framework outputs for each page.

How do I know the fix worked?

Scan the live URL. When the scanner shows no errors, the tags reach crawlers. Then preview the card in the simulator.

Why do I see the old preview after fixing?

The platform cached it. Re-scrape Facebook, inspect in LinkedIn, or share the URL with ?v=2 for X, Slack and Discord.