Lesson 6 of 8
Open Graph & Social Media Tags
Open Graph (OG) tags control how your page looks when shared on Facebook, LinkedIn, WhatsApp, and other platforms. Twitter Card tags do the same for Twitter/X. Without OG tags, social platforms guess which image and text to show - usually poorly.
Social Media Meta Tags
- og:title - Title displayed in social share card. Can differ from <title> for social marketing.
- og:description - Description shown in share cards. 2-4 sentences recommended.
- og:image - Image shown in share cards. Minimum 1200x630px for Facebook. MUST be absolute URL.
- og:url - Canonical URL of the page.
- og:type - Content type: 'website', 'article', 'product'. Affects how data is categorized.
- twitter:card - Card type: 'summary' (small image) or 'summary_large_image' (large image).
- twitter:site - Your Twitter handle: @priygop.
- Test cards: developers.facebook.com/tools/debug and cards-dev.twitter.com/validator.
Diagram
Loading diagramâŚ
Social meta tags produce rich interactive link previews on messaging apps and feeds
Key Takeaways
- Open Graph (OG) tags control how your page looks when shared on Facebook, LinkedIn, WhatsApp, and other platforms.
- og:title - Title displayed in social share card. Can differ from <title> for social marketing.
- og:description - Description shown in share cards. 2-4 sentences recommended.
- og:image - Image shown in share cards. Minimum 1200x630px for Facebook. MUST be absolute URL.
Finished this lesson?
0 of 8 in Module 10