You spend hours crafting the perfect page, then someone shares your link on LinkedIn and it shows a broken image, the wrong title, and a description pulled from your footer text. That is what happens without Open Graph tags.
Open Graph (OG) tags give you full control over how your URL appears on Facebook, LinkedIn, Twitter, Slack, Discord, iMessage, WhatsApp, and dozens of other platforms. This guide covers every OG tag, the exact image dimensions each platform requires, how to set up Twitter Cards, and how to debug when previews look wrong. You can verify your tags instantly with our free Open Graph checker.
Open Graph is a protocol created by Facebook in 2010 that turns any web page into a rich object in a social graph. In practical terms, OG tags are HTML meta elements in your page's <head> section that tell platforms exactly what title, description, image, and URL to display when your link is shared.
Without OG tags, each platform runs its own algorithm to guess what to show. Facebook might pull your logo as the image. LinkedIn might use a random paragraph as the description. Slack might show your page title without any image at all. OG tags eliminate the guessing.
These four tags are required for a proper social preview card:
<meta property="og:title" content="Your Page Title Here">
<meta property="og:description" content="A compelling summary of your page.">
<meta property="og:image" content="https://yoursite.com/images/share.jpg">
<meta property="og:url" content="https://yoursite.com/page/">
The headline in your share card. Keep it under 88 characters — Facebook truncates after that. This can (and often should) be different from your SEO title tag. Your SEO title targets search engines. Your OG title targets humans scrolling social feeds.
The text below the title in the preview card. Aim for 55-200 characters. Facebook shows around 60 characters on mobile, LinkedIn up to 150. Write something that makes people want to click, not just a dry summary of the page content.
The preview image is the single most important element for social engagement. Posts with images get dramatically more clicks than text-only posts. Requirements:
https://)The canonical URL for your page. This should match your <link rel="canonical"> tag. If multiple URLs serve the same content, this tells platforms which one is the "real" URL.
| Platform | Recommended Size | Aspect Ratio | Min Size |
|---|---|---|---|
| 1200 x 630px | 1.91:1 | 600 x 315px | |
| 1200 x 627px | 1.91:1 | 200 x 200px | |
| Twitter (summary_large_image) | 1200 x 600px | 2:1 | 300 x 157px |
| Twitter (summary) | 240 x 240px | 1:1 | 120 x 120px |
| Slack | 1200 x 630px | 1.91:1 | 250 x 250px |
| Discord | 1200 x 630px | 1.91:1 | No minimum |
| 1200 x 630px | 1.91:1 | 300 x 200px |
The safest single image size that works well everywhere: 1200 x 630 pixels. Create one image at this size and it will display properly across all platforms.
Twitter (X) has its own meta tag system that overrides OG tags when present. If Twitter-specific tags are missing, Twitter falls back to your 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.">
<meta name="twitter:image" content="https://yoursite.com/images/share.jpg">
<meta name="twitter:site" content="@yourusername">
summary — small square thumbnail with title and description to the rightsummary_large_image — large rectangular image above the title (much higher engagement)player — embedded video or audio playerapp — mobile app download card with an install buttonFor blog posts and marketing pages, always use summary_large_image. The visual impact drives significantly more engagement than the small summary card.
og:type — the type of content. Use article for blog posts, website for homepages, product for product pagesog:site_name — your website's name (shown above the title on some platforms)og:locale — the language/region, e.g., en_USarticle:published_time — ISO 8601 date for when the article was publishedarticle:author — the author's Facebook profile URL or nameog:image:width and og:image:height — explicitly specify image dimensions so platforms do not need to download the image to determine sizeSocial platforms cache your OG data aggressively. Even after you update your tags, the old preview may persist for hours or days. Here is how to force a refresh:
og:image must use a full absolute URL starting with https://. Relative paths like /images/share.jpg will not work.website, but setting article on blog posts enables additional structured metadata like publish date and author.Check your Open Graph tags right now — paste any URL and see what platforms see.
Open OG CheckerOur free Open Graph checker validates every OG and Twitter Card tag on any URL. It shows exactly what Facebook, LinkedIn, and Twitter will display when your link is shared. No signup, no limits.
Need to generate OG tags from scratch? Use our meta tag generator to create a complete set of SEO, Open Graph, and Twitter Card tags in one step.