SEO
Twitter Card Tags
X/Twitter uses its own meta tags for link previews - Open Graph tags aren't enough.
medium severityWhat is this?
X (formerly Twitter) uses its own card meta tags, separate from Open Graph. Even if you have perfect OG tags, X won't show a rich preview without Twitter Card tags. The minimum set:
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Your App Name"> <meta name="twitter:description" content="What it does"> <meta name="twitter:image" content="https://yourdomain.com/og.png">
summary_large_image shows a large image card. summary shows a smaller thumbnail.
Why it matters
- Links posted on X show no image preview without Twitter Card tags - just a plain URL or small link box
- If you or your users share links on X, this directly affects visibility and clicks
- You can reuse the same image as your OG image - no extra work
How to fix it
Add to your <head> alongside your OG tags:
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Your App Name"> <meta name="twitter:description" content="What it does"> <meta name="twitter:image" content="https://yourdomain.com/og.png">
Test with: cards-dev.twitter.com/validator (Twitter Card Validator)
Providers & tools
Same image for OG and Twitter Card:
- Use 1200×630px PNG for both - works on all platforms
- If your og:image is already set, point twitter:image to the same URL
Check if your domain has this issue