Use the HTML/CSS to Image API to generate images of tweets.
Problems with Twitter screenshots
The Twitter embed API has changed and is blocking many requests. This has resulted in screenshots often returning blank images. We currently do not have a solution, but are working on it.
How it works
To generate a screenshot of a Tweet, we can make use of the Twitter embed API.
For the image to work, make sure you set the selector param to .twitter-tweet and ms_delay to 1500. This gives the embed extra time to load and has the API properly crop the tweet.
Example code
Copy this example, and swap out the href to create an image of any tweet you’d like.