On-Page SEO Dec 15, 2025 · 5 min read

Open Graph & Social Sharing

Optimize your content for social media with proper Open Graph and Twitter Card tags.

What Are Open Graph Tags?

Open Graph (OG) tags are meta tags in your HTML <head> that control how your pages appear when shared on social media platforms like Facebook, LinkedIn, and WhatsApp. They were created by Facebook in 2010 and are now the standard for social sharing previews.

Without OG tags, social platforms will guess what to show — often picking a random image or the wrong title. With proper OG tags, you control exactly how your content looks when shared.

Essential Open Graph Tags

<!-- Required -->
<meta property="og:title" content="Your Page Title">
<meta property="og:description" content="A compelling 2-3 sentence description.">
<meta property="og:image" content="https://example.com/og-image.jpg">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">

<!-- Recommended -->
<meta property="og:site_name" content="Your Brand Name">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Description of the image">

The Perfect OG Image

The OG image is the most visually impactful element of your social share preview. Getting it right dramatically increases engagement:

Twitter Cards

Twitter (now X) uses its own meta tags called Twitter Cards. They work similarly to OG tags but are specific to X/Twitter. If Twitter Card tags are missing, Twitter falls back to OG tags.

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Your Page Title">
<meta name="twitter:description" content="Your description here.">
<meta name="twitter:image" content="https://example.com/og-image.jpg">
<meta name="twitter:site" content="@yourtwitterhandle">

The twitter:card value summary_large_image shows a large image preview. Use summary for a small thumbnail instead.

Platform-Specific Notes

OG Tags Checklist

Check your Open Graph tags

Our free SEO audit checks for OG tags, Twitter Cards, and social sharing readiness on your pages.

Run Free SEO Audit →

Related Resources

Back to Blog