Have you ever shared a link on social media only to find the title looks wrong and no image appears? Nine times out of ten, the culprit is missing or misconfigured Open Graph tags.
What Is the Open Graph Protocol?
Open Graph (OG) is a metadata protocol created by Facebook in 2010. By placing special meta tags inside the <head> of your HTML document, you let social networks and messaging apps display a rich preview with a title, description, and image when someone shares your page. Today virtually every platform reads OG tags: Facebook, Twitter/X, LinkedIn, Slack, Discord, iMessage, and more. Think of them as your webpage's business card.
The 4 Essential OG Tags
There are many OG tag types, but getting these four right produces a clean preview on most platforms.
og:title is the page title shown on the preview card. Unlike the browser <title> tag, it is meant for social sharing. Keep it under 60 characters.
og:description is the text below the title. Summarize the page in one or two sentences, around 155 characters.
og:image is the image URL shown in the preview. It must be an absolute URL starting with https://. Without it, your preview looks bare.
og:url is the canonical URL of the page. When the same page is reachable through several addresses, this tells crawlers which one is authoritative.
Image Specifications: 1200x630 Is the Standard
Platforms display OG images slightly differently, but 1200 x 630 pixels (roughly a 1.91:1 aspect ratio) works well almost everywhere. Keep the file under 5MB and use JPG or PNG. Facebook requires at least 200 x 200 pixels to recognize an image at all, and anything under 600 x 315 shows as a small thumbnail instead of a large card. Standardizing on 1200 x 630 saves you from maintaining multiple sizes.
If you put text on the image, leave generous padding on all sides. Some platforms crop the edges and cut the text off.
Twitter Card Tags
Twitter (now X) has its own meta tag system, though it falls back to OG tags when its own are missing. Adding Twitter-specific tags still gives more reliable results.
twitter:card sets the card type. "summary" shows a small thumbnail and "summary_large_image" shows a prominent image, which is what most pages want. twitter:title and twitter:description play the same role as their OG counterparts, and you can give them different values if needed. twitter:image falls back to og:image when omitted.
Platform Quirks and Debugging
Each platform has quirks. LinkedIn caches previews aggressively and may take hours to reflect updates. Discord renders previews almost instantly but has strict size limits for embed images. Slack shows a compact preview by default and the large image only in expanded mode. Always test on the platforms that matter to your audience.
Each platform offers an official debugger. The Facebook Sharing Debugger (developers.facebook.com/tools/debug/) shows exactly what Facebook reads from your tags, and "Scrape Again" refreshes its cache. X (Twitter) removed the preview from its old Card Validator, so paste the link into a new post draft to see the card, and the LinkedIn Post Inspector (linkedin.com/post-inspector) checks and refreshes LinkedIn's preview. Toolneat's OG Preview tool lets you check several platforms in one place instead of visiting each debugger.
Why a Preview Looks Wrong
If og:image is a relative path like "/images/og.png", some crawlers fail to locate the image. Use an absolute URL like "https://example.com/images/og.png". If the image is too small, platforms may ignore it entirely: the minimum is 200 x 200 and the recommended size is 1200 x 630.
If you updated your tags but the preview has not changed, it is usually a cache problem. Use the platform's debugging tool to force a refresh. Finally, quotes, ampersands, and angle brackets in your title or description need HTML entity encoding, such as & and ".
OG Tags and SEO
OG tags do not directly affect Google rankings. Google reads <title> and the meta description, not OG tags. The indirect impact is real, though: attractive previews get more clicks, and the extra traffic and shares contribute indirectly to SEO.
Write <title>, the meta description, og:title, and og:description as similar but slightly different from one another, each tuned to its context.