DEV Community

Discussion on: How to add Twitter Card Meta Tags to your Blog

Collapse
 
daviddalbusco profile image
David Dal Busco

Is there any advantages on using twitter meta tags instead of og tags?

I think og are interpreted by twitter too, so I'm curious to know if there is any extra advantages on using these specific ones

Collapse
 
andypiper profile image
Andy Piper

The card types do not directly match the OpenGraph ones - if you share an og:article, then Twitter will render a summary card, but not a summary_large_image card, so in that case you'd want to add the twitter:card type tag. However, you're right, in most cases the twitter: tags do map to og: equivalents, so you can keep the amount of markup to a minimum if you use the og: fallbacks in most cases.

Collapse
 
daviddalbusco profile image
David Dal Busco

Thx a lot for the interesting add-on/answer @andypiper !