What is Open Graph?
The Open Graph (OG) protocol was created by Facebook to standardize how web page metadata is interpreted when shared. Before it, social networks tried to "guess" which image or text to use, often choosing incorrectly.
With OG tags, you explicitly define:
- Which image should appear (thumbnail).
- Which title should be displayed (can be different from the
<title>tag). - Which description should accompany the link.
Recommended Image Dimensions
| Social Network | Ideal Dimension | Aspect Ratio | Note |
|---|---|---|---|
| Facebook / LinkedIn | 1200 x 630 px | 1.91:1 | Globally accepted standard. |
| Twitter (Large Card) | 1200 x 628 px | ~1.91:1 | Very similar to Facebook standard. |
| Twitter (Summary) | 144 x 144 px | 1:1 | Square, small image next to text. |
| 300 x 300 px | 1:1 | Recommended square and < 300KB. |
Official Validators (Debuggers)
After adding tags to your site, use these official tools to clear social media cache and verify everything is correct:
Frequently Asked Questions (FAQ)
og:title, og:type, og:image and og:url. Without them, sharing might look broken or lack an image. Twitter tags (twitter:card, etc.) are optional if you already have Open Graph ones, as Twitter usually uses OG tags as fallback, but it's good practice to include them for full control.