Official Plugin
View plugin on GitHubgatsby-plugin-twitter
Loads the Twitter JavaScript for embedding tweets, timelines, share and follow buttons. Lets you add tweets to markdown and in other places.
Install
npm install gatsby-plugin-twitter
Configure
// In your gatsby-config.js
plugins: [`gatsby-plugin-twitter`]
How to Use
- On Twitter, find the tweet you’d like to display.
- In the top right-hand corner of the tweet, click the caret (∨) and select “Embed tweet”.
- Take the code you’re given and copy it into your markdown page.
Note: when copying the embed code, copy only the blockquote section and not the script.