Generate the meta tags that control how your page looks when shared on Twitter, Facebook, LinkedIn, and Slack.
Open Graph (OG) tags are meta tags in your HTML <head> that control how your page appears when shared on social platforms — Facebook, LinkedIn, WhatsApp, Slack, iMessage, and many others. They were created by Facebook in 2010 and are now the de facto standard for social sharing metadata.
The four essential OG tags are: og:title (the link headline), og:description (the preview text), og:image (the thumbnail — ideally 1200×630 px), and og:url (the canonical URL of the page). Twitter/X uses its own variant (twitter:card, twitter:title, etc.) but falls back to OG tags when Twitter-specific tags are absent. Without OG tags, social platforms extract title and description from your page's content with unpredictable results, often producing poor-quality previews. After adding or updating OG tags, clear the social platform's cache using Facebook's Sharing Debugger or LinkedIn's Post Inspector.
Open Graph tags are HTML meta tags in the
section that tell social media platforms (Facebook, LinkedIn, WhatsApp, Slack) how to display your page when someone shares a link. They control the title, description, image, and URL shown in the preview card.Social platforms cache link previews aggressively. After adding or changing OG tags, you need to clear the platform's cache. Use Facebook's Sharing Debugger (developers.facebook.com/tools/debug) or LinkedIn's Post Inspector to force a re-fetch and see the updated preview.
The recommended size is 1200×630 pixels (approximately 1.91:1 ratio). This displays correctly on Facebook, LinkedIn, and Twitter. Use PNG or JPEG format; keep the file under 8 MB. Images that are too small (under 200×200px) may not show as a large card preview.
Most major platforms support OG tags: Facebook, LinkedIn, WhatsApp, Slack, Telegram, iMessage, Discord, and many others. Twitter/X uses its own 'twitter:card' tags but falls back to OG tags. Some platforms (Reddit, Pinterest) have their own additional tags but respect OG as a baseline.