Embedded Tweet JavaScript Factory Function
Twitter’s widget JavaScript library supports dynamic insertion of Embedded Tweets using the twttr.widgets.createTweet function. Pass a Tweet ID, target parent element, and any custom options.
The code snippets on this page assume Twitter’s widgets.js has successfully loaded on your page. Include an asynchronous script loader on your page while initializing window.twttr as described in our JavaScript loader documentation. All JavaScript code depending on widgets.js should execute on or after twttr.ready.