What Open Graph tags do
When someone shares your link, apps like Facebook, LinkedIn, WhatsApp, Slack and iMessage read your page's Open Graph tags to build the preview card: the image, title and description. X reads its own twitter: tags and falls back to Open Graph. Without them, apps guess, and the preview often shows the wrong image or none at all.
Open Graph image size
| Use | Recommended size |
|---|---|
| Facebook, LinkedIn, WhatsApp | 1200 × 630 px (1.91:1) |
| X large image card | 1200 × 628 px, same 1.91:1 ratio |
| X small card | Square, at least 144 × 144 px |
| Smallest that works | 600 × 315 px for large previews |
Keep important text and faces away from the edges, as some apps crop to a square or a slightly different ratio. Use JPG or PNG under about 5 MB, hosted at a public https:// address.
The tags you need
og:title: up to about 60 characters.og:description: one or two sentences, under about 160 characters.og:image: the full URL of the image, plus its width, height and alt text.og:url: the page's canonical address.twitter:card:summary_large_imagefor a big image on X.
Preview not updating?
Networks cache previews. After changing your tags, run the page through Facebook's Sharing Debugger or LinkedIn's Post Inspector to fetch the new version. WhatsApp updates on its own after a while, or sooner if you add a harmless query string like ?v=2 to the link.
Questions people ask
What size should an Open Graph image be?
1200 × 630 pixels, a 1.91:1 ratio. It looks sharp everywhere and isn't cropped on Facebook, LinkedIn, WhatsApp or X large cards.
Do Open Graph tags help SEO?
Not directly; Google doesn't use them for rankings. They make shared links look better, which brings more clicks and visitors.
Does WhatsApp use Open Graph tags?
Yes. WhatsApp builds link previews from og:title, og:description and og:image. Keep the image small enough to load quickly, ideally under about 300 KB.
Do I need both og: and twitter: tags?
X falls back to Open Graph for title, description and image, but it needs twitter:card to show a large image. The generated tags include both.
Why does my old image still show?
The network has cached the old preview. Re-scrape the URL with Facebook's Sharing Debugger or LinkedIn's Post Inspector.
