Preview and generate Open Graph meta tags for social media sharing cards
Features
- Real-time Preview: Preview how your page appears on social media instantly
- Complete OG Tags: Generate all necessary Open Graph meta tags
- Multiple Platforms: Preview for Facebook, Twitter, LinkedIn simultaneously
- Copy Tags: One-click copy generated meta tags
Usage Guide
- Enter Meta Data: Fill in title, description, image URL, and page URL for your content
- Configure Options: Set Open Graph type, site name, Twitter card type, and social media handles
- Preview Appearance: Review how your content appears on different social media platforms
- Generate and Copy Tags: Generate meta tags code and copy to your website's <head> section
Technical Details
Open Graph Protocol
Open Graph uses meta tags with og: prefix in HTML <head> to define page metadata. Core properties include og:title (page title), og:type (content type like article, website, video), og:image (preview image URL), og:url (canonical URL), and og:description (content summary). Optional properties include og:site_name, og:locale, article:published_time, and video:duration. These tags are parsed by social media platforms when URLs are shared to create rich preview cards.
Twitter Cards
Twitter Cards extend Open Graph with twitter: prefixed tags for Twitter-specific features. Four card types are available: summary (default with square image), summary_large_image (large rectangle image), app (mobile app promotion), and player (video/audio player). twitter:card specifies the type, while twitter:site and twitter:creator reference Twitter @handles. Twitter falls back to Open Graph tags if Twitter-specific tags are absent.
Image Requirements
Different platforms have specific image requirements: Facebook recommends 1200x630px (1.91:1 ratio), minimum 200x200px, maximum 8MB; Twitter summary_large_image needs 2:1 ratio (1200x600px preferred), summary card 1:1 ratio (144x144px minimum); LinkedIn supports 1200x627px (1.91:1); WeChat requires 300x300px to 1068x455px. Images should be in JPG, PNG, or WEBP format. Using multiple og:image tags provides fallbacks.
Frequently Asked Questions
- What are Open Graph tags?
- Open Graph tags are meta tags that control how URLs are displayed when shared on social media platforms. They define title, description, image, and other properties for link previews.
- Which platforms use Open Graph?
- Facebook, LinkedIn, Pinterest, and many others use Open Graph. Twitter uses similar Twitter Card tags. Both can coexist on same page.
- What's the recommended image size?
- Recommended: 1200x630px for Facebook/LinkedIn. Minimum: 600x315px. Use PNG or JPG format. Keep file size under 8MB.
- How to debug Open Graph tags?
- Use Facebook Sharing Debugger, Twitter Card Validator, or LinkedIn Post Inspector. These tools show how your tags will appear and identify errors.
- Do I need different tags for each platform?
- Open Graph tags work for most platforms. Add Twitter Card tags (twitter:*) for Twitter-specific features. Use og:* tags as fallback for all platforms.
Related Documentation
- Open Graph Protocol - Official Open Graph protocol documentation
- Twitter Card Tags - Twitter Card meta tags guide
- Facebook Sharing - Facebook sharing best practices
- LinkedIn Post Inspector - LinkedIn post preview and debugging tool
- SEO Meta Tags Guide - Complete guide to SEO and social meta tags