Skip to content
Back to all articles
Developer3 min readNovember 13, 2026

Open Graph Tags Explained: Control How Your Links Look on WhatsApp and LinkedIn

Why a shared link sometimes shows the wrong image or no preview at all, which Open Graph and X tags fix it, the right image size, and how to refresh old previews.

Open Graph Tags Explained: Control How Your Links Look on WhatsApp and LinkedIn article
In this guide
  1. What Open Graph tags are
  2. The tags you need
  3. The right image
  4. Why the old preview still shows
  5. Common problems and fixes
  6. WordPress and CMS sites
  7. Related tools
  8. Common questions

You share a link to your new page on WhatsApp or LinkedIn and the preview shows the wrong image, a cropped logo, an old title or nothing at all. The page itself is fine; the problem is in a few lines of HTML called Open Graph tags. This guide explains what they do, which ones you need, and how to generate them with the free Meta Tag Generator.

What Open Graph tags are

When someone shares a link, the app fetches the page and looks for Open Graph (og:) tags in its `` to decide what to show. Facebook created the format, and WhatsApp, LinkedIn, Telegram, Slack and many others use it. X (Twitter) reads Open Graph too, plus its own twitter: tags.

Without these tags, apps guess: they take the first image they find (often a logo or icon) and the page title.

The tags you need

html







TagWhat it controls
og:titleThe bold title in the preview
og:descriptionThe line of text under it
og:imageThe preview picture
og:urlThe canonical address of the page
og:typewebsite, article or product
twitter:cardOn X: a small or a large image card

The Meta Tag Generator writes all of these, plus the title, meta description and canonical tags, and shows a social preview and a Google preview as you type. It also escapes quotes and symbols so the tags never break your HTML.

The right image

  • Size: 1200 × 630 pixels (ratio 1.91:1). This works on Facebook, WhatsApp, LinkedIn and X.
  • Format: JPG or PNG, ideally under about 1 MB.
  • Address: a full https:// URL that anyone can open, not a relative path like /images/share.png.
  • Safe area: keep text and faces near the centre; some apps crop the edges or show a square version.
  • Text: a short headline on the image helps, but keep it large and readable on a phone.

Why the old preview still shows

Apps cache previews, sometimes for days. After fixing your tags:

  • Facebook and WhatsApp: open Facebook's Sharing Debugger, enter the URL and click Scrape Again. WhatsApp often follows Facebook's refreshed data, but chats that already contain the link keep the old preview.
  • LinkedIn: use LinkedIn's Post Inspector with the URL to refresh it.
  • X: previews refresh on their own after a while; sharing the URL with a harmless query string (?v=2) forces a fresh fetch.

Common problems and fixes

ProblemLikely cause
No preview at allMissing og: tags, or the page blocks bots or requires a login
Wrong imageog:image missing, so the app picked the first image on the page
Image does not loadRelative image URL, or the image is blocked by the server
Image cropped badlyImage not 1.91:1, or important content near the edges
Old title still showsCached preview: refresh it with the debugger tools

WordPress and CMS sites

SEO plugins such as Rank Math and Yoast add Open Graph tags automatically from each post's SEO title, description and featured image. Set those fields instead of pasting tags by hand, and make sure every post has a featured image in the right size.

Common questions

Do Open Graph tags help SEO? Not directly for rankings, but better previews get more clicks when your links are shared.

Do I need both og: and twitter: tags? X reads og: tags, but twitter:card decides the card style, so add at least that one.

Is a meta keywords tag needed? No. Google ignores it.

Was this article helpful?

Found this guide useful?

Share it with someone who is struggling with the same problem.

Free tool · No sign-up

HTML SEO Meta Tag Generator

Generate title, meta description, canonical, Open Graph and X (Twitter) tags with live Google and social previews. Properly escaped HTML, ready to paste.

Open tool

Written by

Hemant Adhikari HemantInsights

Senior Software Engineer · Developer of Toolyconvert

I’m a senior software engineer from Dehradun, India, building websites since 2014. I designed and developed Toolyconvert, from the Next.js front end and headless WordPress back end to the tools themselves, and I review every guide before it goes live.