Social previews are the new homepage. When links are shared on LinkedIn, X, Facebook, or Slack, the Open Graph (OG) tags decide the image, title, and description people see. This guide shows how to implement OG correctly, avoid broken previews, and use them to strengthen SEO.
OG tags describe your page to social platforms. The correct tags ensure consistent previews, better click-through rates, and accurate link unfurling across clients.
Include these in the <head> of every shareable page:
<meta property="og:title" content="Page title" /> <meta property="og:description" content="Compelling summary" /> <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="article" /> <meta name="twitter:card" content="summary_large_image" />
Add og:locale (en_US, de_DE) and og:site_name for brand consistency.
og:locale and og:locale:alternate for translations.og:url points to the canonical URL for each language.Use <link rel="canonical"> to point social crawlers and search engines to the primary URL. This prevents split engagement metrics when the same content exists under tracking parameters or regional domains.
opengraph-preview tool to verify titles, descriptions, and images before publishing.og:image or images smaller than 200×200 px.opengraph-preview and platform debuggers.Use opengraph-preview to render and validate your OG tags before you share a link. Catch missing fields, wrong aspect ratios, and caching issues early to ensure every share looks intentional.
Open Graph (OG) tags are HTML meta tags that control how your content appears when shared on social media platforms like Facebook, LinkedIn, Twitter/X, and Slack. They define the title, description, image, and other metadata shown in link previews.
og:title is specifically for social media previews and can be different from your page's HTML <title>. However, they should be related. OG titles are often optimized for social sharing (shorter, more compelling), while HTML titles focus on SEO.
Recommended: 1200×630 pixels (1.91:1 aspect ratio) in JPG or PNG format, under 2MB. Minimum: 200×200 pixels. Some platforms accept different sizes, but 1200×630 works universally across all major platforms.
Yes, each shareable page should have unique OG tags. Using the same image and description for every page reduces relevance and click-through rates. Customize OG tags to match each page's content.
Use Facebook Sharing Debugger, LinkedIn Post Inspector, or Twitter Card Validator. Our Open Graph Preview tool lets you preview how your tags will appear before sharing.
Common causes: images too small (<200×200px), relative URLs instead of absolute HTTPS, images blocked by robots.txt or authentication, or cached previews. Clear platform caches by re-scraping your URL.
og:image is the standard Open Graph tag used by Facebook, LinkedIn, and most platforms. twitter:image is Twitter-specific. Use both for maximum compatibility. Twitter will fall back to og:image if twitter:image is missing.
Update OG tags whenever you change page content, titles, or descriptions. Also update when redesigning to ensure preview images match your current brand. Remember to re-scrape URLs after updates to clear platform caches.