Open Graph Meta Tags
Open Graph (OG) is a protocol created by Facebook that controls how a page is represented when shared on social media platforms including Facebook, Twitter/X, LinkedIn, and WhatsApp. OG tags are <meta> elements in the <head> that use a property attribute instead of name.
Essential OG Tags
The four required OG tags are og:title, og:type, og:image, and og:url. Additional important tags include og:description and og:site_name. Twitter has its own set of tags (using name with twitter: prefix) but falls back to OG tags when Twitter-specific ones are absent. Always use an absolute URL for og:image and aim for 1200×630px to display correctly on all platforms.