Menu

1 / 5

Open Graph image not showing on a Next.js + Sanity site: rescue

DEV Community: nextjs·Nayan Kyada·12 days ago
#8tkvhQDM
#devtonextjs#devto#dev#sanity#title
Long article (1295 words) — no AI summary yet.
Reading 0:00
15s threshold

If your Open Graph image is not showing on a Next.js + Sanity site, links shared on LinkedIn, Slack, WhatsApp or X look bare: a grey box, a favicon, or the wrong picture from an old campaign. It is almost never a Sanity bug. It is a metadata wiring problem that nobody noticed because nobody shares their own links to test them.

This post covers the symptoms, what leaving it broken costs, the fix path, and what to ask a developer who says it is a quick job.

Symptoms that point to a broken Open Graph setup

These are the patterns I see on inherited sites:

Every page shows the same image, usually the homepage one, or none at all.

The preview works on staging but not on the live domain.

The title and description appear, but the image slot is empty.

A fixed image shows in the debugger tool but old links still look wrong.

Blog posts that editors gave a hero image still share without one.

The quickest check takes thirty seconds. Open the page, view source, and search for og:image .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.