Skip to main content
Official Plugin
View plugin on GitHub
See starters using this

gatsby-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

  1. On Twitter, find the tweet you’d like to display.
  2. In the top right-hand corner of the tweet, click the caret (∨) and select “Embed tweet”.
  3. 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.