Contents

User-Agent

When fetching card metadata, Twitter sends a User-Agent header containing "Twitterbot" (followed by some version number or other information). To avoid metacrap, dynamic websites can choose to conditionally enable Twitter card metadata based on this User-Agent string.

Card Types

Twitter has a particular twitter-specific set of card types that you can set with the meta name twitter:card, e.g.

<meta name="twitter:card" content="summary" />

<meta name="twitter:card" content="summary_large_image">

<meta name="twitter:card" content="photo" />

<meta name="twitter:card" content="gallery" />

<meta name="twitter:card" content="app">

<meta name="twitter:card" content="player">

<meta name="twitter:card" content="product">

Custom Domain String

Twitter generates a "View on ..." link using the meta property twitter:domain. This string does not have to be a valid domain and can include custom text. For example, the tag:

<meta name="twitter:domain" content="kylewm.com to see the original"/>