Open Graph & Social Media Meta Tags: Complete Guide
Open Graph meta tags control how your content appears when shared on social media platforms like Facebook, LinkedIn, and Twitter. Properly configured social meta tags can significantly increase click-through rates and engagement when your content is shared.
What is Open Graph Protocol?
The Open Graph protocol was created by Facebook in 2010 to enable web pages to become rich objects in a social graph. When you share a link on social media, OG tags determine the title, description, and image that appear in the preview card.
Essential Open Graph Tags
og:title- The title of your content (50-60 characters recommended)og:description- A brief description (150-200 characters)og:image- URL to an image (1200x630px recommended for Facebook)og:url- The canonical URL of your contentog:type- The type of content (website, article, product, etc.)
Twitter Card Tags
Twitter has its own meta tags for controlling card appearance. While Twitter can fall back to Open Graph tags, using specific Twitter Card tags gives you more control over how your content appears on the platform.
Twitter Card Types
- summary - Small square image with title and description
- summary_large_image - Large rectangular image above title and description
- player - For video/audio content with embedded player
- app - For mobile app promotion with download links
Image Best Practices
Facebook/LinkedIn
- Recommended: 1200 x 630 pixels
- Minimum: 600 x 315 pixels
- Aspect ratio: 1.91:1
- Max file size: 8MB
- Summary: 144 x 144 pixels
- Large image: 1200 x 628 pixels
- Aspect ratio: 2:1
- Max file size: 5MB
Implementation Example
<!-- Open Graph Tags -->
<meta property="og:title" content="Your Page Title">
<meta property="og:description" content="A compelling description of your page">
<meta property="og:image" content="https://example.com/image.jpg">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<!-- Twitter Card Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Your Page Title">
<meta name="twitter:description" content="A compelling description">
<meta name="twitter:image" content="https://example.com/image.jpg">Why Social Meta Tags Matter for SEO
While social meta tags don't directly impact search engine rankings, they significantly affect:
- Click-through rates - Attractive previews encourage more clicks
- Brand visibility - Consistent, professional appearance builds trust
- Traffic from social - Better engagement leads to more shares and visits
- Content distribution - Well-optimized posts perform better in social algorithms
Frequently Asked Questions
Do I need both OG and Twitter tags?
Twitter falls back to OG tags, but using Twitter-specific tags gives you more control. For best results, use both.
How do I test my social meta tags?
Use Facebook's Sharing Debugger and Twitter's Card Validator to preview how your content will appear.
Why isn't my image showing on Facebook?
Facebook caches OG data. Use the Sharing Debugger to scrape new information. Also ensure your image URL is absolute and accessible.
Can I use different images for different platforms?
Yes! Use og:image for Facebook/LinkedIn and twitter:image for Twitter to optimize for each platform's requirements.