


To verify this, run the following command:Ĭontent is cached by Twitter for 7 days after a link to a page with card markup has been published in a Tweet. The server’s robots.txt file must be saved as plain text with ASCII character encoding. Here is another example, which specifies which directories are allowed to be crawled by Twitterbot (in this case, disallowing all except the images and archives directories): Twitter uses the User-Agent of Twitterbot (with version, such as Twitterbot/1.0), which can be used to create an exception in the robots.txt file.įor example, here is a robots.txt which disallows crawling for all robots, except Twitter’s fetcher: If an image URL is blocked, no thumbnail or photo will be shown. If a page with card markup is blocked, no card will be shown. Twitter’s crawler respects Google’s robots.txt specification when scanning URLs. This applies to the Summary with Large Image card.Ĭonfigure card attribution using the following properties: Card for the website used in the card for the content creator / author. For example, may set the the website attribution to “ for front page articles, and “ for articles in the Arts & Entertainment section.Ĭreator Attribution: Indicates the individual user that created the content within the card. Note that a service may set separate Twitter accounts for different pages/sections of their website, and the most appropriate Twitter account should be used to provide the best context for the user. Website Attribution: Indicates the Twitter account for the website or platform on which the content was published. Users will be able to follow and view the profiles of attributed accounts directly from the card. If more than one twitter:card value exists in the page, the “last” one in sequence will take priority.Įach card has built-in content attribution, which surfaces appropriate Twitter accounts for the content as specified by you. Only one card type per-page is supported. The card type, which will be one of “summary”, “summary_large_image”, “app”, or “player”. The combined collection of properties defines the overall card experience on Twitter, and each card type supports and requires a specific set of properties.Īll cards have one basic property in common - the card type value: Card Property To get started with implementing Cards markup, specify the type of card for your content by adding the following HTML markup to the HEAD section of the page:Ĭard properties are simple key-value pairs, each defined in an HTML meta tag as seen above.
