SOCIAL META TAG ARCHITECTURE (OPENGRAPH & TWITTER CARDS)
Complete protocol guide to the OpenGraph specification, Twitter summary cards, image dimension requirements, and client airgap guarantees.
1. OpenGraph & Twitter Protocol Hierarchy
When social platforms like Twitter/X, Facebook, LinkedIn, Discord, or Slack process a shared URL, their link unfurlers crawl the HTML document's `
` to construct visual rich snippets:- og:title: The primary title of your object. Keep under 60 characters to prevent truncation across mobile viewports.
- og:description: A 1-2 sentence snippet of the content. Ideal range is 55–160 characters.
- og:image: Absolute URL to an image asset. Recommended aspect ratio is
1.91:1(1200×630 pixels) with maximum file size under 5MB. - og:url: The canonical URL for your page. Consolidates likes, reactions, and share telemetry across HTTP/HTTPS and query param variations.
- twitter:card: Card presentation format:
summary_large_image(full-bleed 1200×630 banner) orsummary(square thumbnail).
1. 100% Client-Side Sandbox
Zero analytics logging. URL schemas and preview strings remain in local browser memory.
2. Character Counter Guard
Real-time color-coded limits alert you when title or description exceeds optimal social character budgets.
3. Universal Compatibility
Generates valid tags for Facebook, X (Twitter), LinkedIn, Pinterest, Discord, and Google Discover.