A Comprehensive Guide to Open Graph Meta Tags
Open Graph meta tags are essential for controlling how your content appears when shared on social media platforms. This guide covers everything you need to know about implementing Open Graph tags effectively.
Image Requirements
Technical Requirements
- Size1200 x 630 pixels (Recommended)
- File SizeLess than 5MB (ideally few hundred KB)
- FormatJPG, PNG, or GIF
Additional Image Tags
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Description of image" />
Implementation Guide
Open Graph Implementation
Basic Open Graph tags implementation
Platform-Specific Considerations
- • Minimum image size: 200 x 200 pixels
- • Recommended aspect ratio: 1.91:1
- • Images are cropped to 1.91:1 in feeds
- • Maximum file size: 8MB
Twitter/X
- • Minimum size for summary_large_image: 300 x 157 pixels
- • Maximum image size: 5MB
- • Supported formats: JPG, PNG, WEBP, GIF
- • No animated GIFs in cards
- • Recommended image size: 1200 x 627 pixels
- • Minimum image size: 200 x 200 pixels
- • Maximum file size: 5MB
- • Title length: 70 characters
- • Description length: 100 characters
Best Practices
Important Tips
- Always use absolute URLs for images
- Test your meta tags using platform-specific validation tools
- Keep titles under 60 characters
- Keep descriptions between 2-4 sentences
- Use high-quality, relevant images
- Regularly validate and update your meta tags