Complete Guide to Social Media Meta Tags
Open Graph (OG) tags are snippets of code that control how your URLs are displayed when shared on social media. They are part of Facebook's Open Graph protocol and are also used by LinkedIn and WhatsApp.
Visual Appeal
Links with large images get up to 40% more clicks than plain text links.
WhatsApp Ready
WhatsApp uses og:image and og:description to generate link previews in chat.
Brand Consistency
Ensure your exact Title and Description are shown, rather than what the bot guesses.
Recommended Image Sizes (2025)
- Facebook & LinkedIn: 1200 x 630 pixels (1.91:1 ratio)
- Twitter (Large Card): 1200 x 600 pixels (2:1 ratio)
- WhatsApp (Square): 400 x 400 pixels (1:1 ratio) works best, but 1200x630 is accepted.
How to Add This Code?
Once you generate the code using this tool:
- Click the "Copy" button.
- Open your website's HTML file or Theme Header.
- Paste the code inside the
<head>section (before the closing</head>tag). - Use the "FB Debugger" link above to clear the cache and test your link.
Frequently Asked Questions
Q: Why isn't my image showing on WhatsApp?
A: WhatsApp requires the image size to be under 300KB. Make sure to compress your image.
Q: What is the Twitter Card?
A: It's Twitter's version of Open Graph. "Summary Large Image" is the best performing card type.