Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Official Plugin
View plugin on GitHub

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.

© 2024 Gatsby, Inc.