Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implement and validate Open Graph, Twitter Card, and social preview metadata for websites. Use when the task is about preview cards, meta tags, social sharing behaviour, or fixing broken previews. Do not use this for generating the image assets themselves unless paired with web-asset-generator.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✓→✓ | = Same ✓ | 103% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 319% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 120% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 77% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 111% | 0% |
Guide for implementing social media sharing optimization including Open Graph Protocol, Twitter Cards, image dimensions, and validation tools.
html<!-- Open Graph --> <meta property="og:title" content="Compelling Headline (60-90 chars)"> <meta property="og:type" content="article"> <meta property="og:image" content="https://yoursite.com/og-image.jpg"> <meta property="og:url" content="https://yoursite.com/page"> <!-- Twitter --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Compelling Headline"> <meta name="twitter:description" content="Description under 200 chars"> <meta name="twitter:image" content="https://yoursite.com/og-image.jpg">
| Platform | Size | Aspect Ratio | File Max | |----------|------|--------------|----------| | Universal | 1200 × 630 px | 1.91:1 | < 1 MB | | Facebook | 1200 × 630 px | 1.91:1 | 8 MB | | LinkedIn | 1200 × 627 px | 1.91:1 | 8 MB | | Twitter/X | 1200 × 628 px | 1.91:1 | 5 MB | | Pinterest | 1000 × 1500 px | 2:3 | 20 MB |
Absolute minimum: 200 × 200 px (below this, no image displays)
html<!-- Essential Meta --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Page Title</title> <meta name="description" content="SEO description"> <!-- Open Graph / Facebook / LinkedIn --> <meta property="og:type" content="article"> <meta property="og:url" content="https://yoursite.com/page"> <meta property="og:title" content="Compelling Social Headline"> <meta property="og:description" content="Enticing description under 200 chars"> <meta property="og:image" content="https://yoursite.com/og-image-1200x630.jpg"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> <meta property="og:site_name" content="Your Brand"> <meta property="og:locale" content="en_US"> <!-- Twitter / X --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:url" content="https://yoursite.com/page"> <meta name="twitter:title" content="Compelling Social Headline"> <meta name="twitter:description" content="Enticing description under 200 chars"> <meta name="twitter:image" content="https://yoursite.com/og-image.jpg"> <meta name="twitter:image:alt" content="Descriptive alt text"> <meta name="twitter:site" content="@YourHandle"> <!-- Analytics (optional) --> <meta property="fb:app_id" content="your_app_id">
| Tag | Purpose | Example | |-----|---------|---------| | og:title | Headline in preview | "10 Ways to Improve SEO" | | og:type | Content type | article, website, video | | og:image | Preview image URL | Absolute URL required | | og:url | Canonical URL | https://example.com/page |
| Tag | Purpose | Best Practice | |-----|---------|---------------| | og:description | Summary text | Under 200 characters | | og:site_name | Brand name | Consistent across pages | | og:locale | Language/region | en_US, de_DE | | og:image:width | Image width | Include for immediate display | | og:image:height | Image height | Include for immediate display |
| Tag | Purpose | Values | |-----|---------|--------| | twitter:card | Card type | summary, summary_large_image | | twitter:title | Card title | Max 70 chars | | twitter:description | Card description | Max 200 chars | | twitter:image | Image URL | Min 300×157 px | | twitter:image:alt | Alt text | Accessibility | | twitter:site | Site handle | @BrandHandle |
Card Types:
summary — Small square image + textsummary_large_image — Large featured image (best engagement)app — Mobile app promotionplayer — Video/audio embed| Mistake | Problem | Solution | |---------|---------|----------| | Relative image URLs | Image won't display | Use absolute URLs (https://...) | | Image too small | Tiny/no thumbnail | Minimum 600 × 315 px | | Wrong aspect ratio | Awkward cropping | Stick to 1.91:1 | | File too large | Slow/timeout | Compress to < 1 MB | | Missing og:type | Platform confusion | Always include type |
| Element | Recommended | Maximum | Notes | |---------|-------------|---------|-------| | Title | 55-60 chars | 95 chars | Facebook truncates at ~88 | | Description | 150-160 chars | 300 chars | Keep under 200 for safety | | Twitter title | 70 chars | — | Concise works best |
Always test implementation before deploying:
| Tool | Platform | URL | |------|----------|-----| | Facebook Sharing Debugger | Facebook | developers.facebook.com/tools/debug/ | | LinkedIn Post Inspector | LinkedIn | linkedin.com/post-inspector/ | | Twitter Card Validator | Twitter/X | cards-dev.twitter.com/validator | | OpenGraph.xyz | Universal | opengraph.xyz | | Check Yo Meta | Universal | checkyometa.com |
Important: After updating tags, use these tools to force a fresh scrape. Social platforms cache aggressively.
og:image:width and og:image:height for immediate displaysummary_large_image cards perform bestog:image from OG tagsFor CMS-driven sites, generate tags dynamically:
html<meta property="og:title" content="{{ post.title }}"> <meta property="og:description" content="{{ post.excerpt|truncate(160) }}"> <meta property="og:image" content="{{ post.featured_image.url }}"> <meta property="og:type" content="article"> <meta property="article:published_time" content="{{ post.published_at }}">
title, type, image, url)card, title, description, image)Studies show significant benefits from proper social optimization:
Other measured skills in the registry, with their headline benchmark lift.