Displays a Twitter Tweet.
Example:
<amp-twitter width=486 height=657
layout="responsive"
data-tweetid="585110598171631616"
data-cards="hidden">
CAVEATS
Twitter does not currently provide an API that yields fixed aspect ratio Tweet embeds. We currently automatically proportionally scale the Tweet to fit the provided size, but this may yield less than ideal appearance. Authors may need to manually tweak the provided width and height. You may also use the media
attribute to select the aspect ratio based on screen width. We are looking for feedback how feasible this approach is in practice.
data-tweetid
The ID of the tweet. In a URL like https://twitter.com/joemccann/status/640300967154597888 640300967154597888
is the tweetID.
data-nameofoption
Options for the Tweet appearance can be set using data-
attributes. E.g. data-cards="hidden"
deactivates Twitter cards. For documentation of the available options, see Twitter's docs.