Twitter Embed

An example for how to generate a screenshot of a tweet from Twitter.

To auto generate a screenshot of a tweet, you can use the Twitter embed.

Example code

Here's example HTML you can send to the API to generate the image. To change the tweet, swap out the ID in the code.

<div style="display: inline-block">
<div class="tweet" id="1253524351376330752"></div>
<script src=""
<script src=""></script>
var tweets = $(".tweet");
$(tweets).each( function( t, tweet ) {
var id = $(this).attr('id');
id, tweet,
conversation : 'none',
cards : 'hidden',
linkColor : '#cc0000',
theme : 'light'

Tweet screenshot