og: vs twitter: meta tags: why you need both and how they interact

Open Graph (og:) tags are the standard, originated by Facebook and now supported by LinkedIn, Discord, Slack, WhatsApp, and most other platforms. Twitter has its own twitter: tags but will fall back to og: equivalents if the twitter: versions are missing. The fallback chain is: twitter:title → og:title → <title>. twitter:description → og:description → <meta name='description'>. twitter:image → og:image.

Platform or focus
Platforms
Social media and messaging apps
Topic detail
Facebook vs Twitter tags
facebook-vs-twitter

How this is calculated

If you only have og: tags, Twitter will usually render a reasonable card. But the fallback isn't 100% reliable: Twitter sometimes fails to fetch og:image if the dimensions aren't 1.91:1 or 1:1, and it won't automatically choose summary_large_image just because your og:image is large. Adding explicit twitter: tags gives you control over how your content appears specifically on Twitter. The minimum set: og:title, og:description, og:image, og:url, og:type (for Facebook and general purpose), plus twitter:card, twitter:title, twitter:description, and twitter:image (for Twitter-specific control).

Verdict

Always include both og: and twitter: tags. It's an extra 4 lines of HTML and guarantees your previews look correct on every platform. Set twitter:card to summary_large_image for content pages and let the twitter: tags mirror the og: tags for consistency.

More OG scenarios

Frequently asked questions

What are Open Graph meta tags?
Open Graph meta tags are snippets of code in your website's <head> that control how your page appears when shared on social media. They allow you to define a specific title, description, and image that platforms like Facebook, Discord, and LinkedIn will display.
Why do I need a separate twitter:card tag?
While many platforms fallback to Open Graph (og:) tags, Twitter uses its own specific meta tags (twitter:card, twitter:image, etc.) to format link previews. Providing both ensures maximum compatibility across all platforms.
What is the best image size for Open Graph?
The recommended size for an Open Graph image is 1200x630 pixels. This creates a 1.91:1 aspect ratio, which is the standard size used by almost all major social platforms for large preview cards.
How do I test if my tags are working live?
Once deployed, you can use official debuggers like the Facebook Sharing Debugger or the Twitter Card Validator. This visualizer tool helps you preview and generate the tags locally before you deploy them.