How to Add Open Graph Tags
Control the title, description and image shown when your link is shared.
Missing Open Graph tags mean social platforms and chat apps guess at your link's title, description and image — usually badly, and sometimes by picking the first image on the page. Adding og:title, og:description, og:image and og:url gives you control of the card. Around 38% of audited sites ship none.
Why It Matters
Every share, every paste into a chat, every post is either a rich card or a bare URL. The tags cost four lines and decide which.
How to Fix
Add the four core tags
Use an absolute image URL
Set og:type
Verify with a debugger
Code Fix
html<!-- nothing; the platform picks whatever image it finds first --><meta property="og:title" content="How to fix redirect chains">
<meta property="og:description" content="Collapse multi-hop redirects into one.">
<meta property="og:url" content="https://example.com/fixes/redirect-chains">
<meta property="og:image" content="https://example.com/og.png">
<meta property="og:type" content="article">Platform-Specific Instructions
Any major SEO plugin adds these. Set a site-wide fallback image so pages without a featured image still share well.
Use the openGraph key in the metadata export. Relative image paths resolve only if metadataBase is set.
Fixed that one.
Now find the rest.
A free audit ranks every issue on your site by the score points it costs — and links each one straight to its guide.
Run a free audit