How to Add the Tweet Button to Your Website

The Tweet button encourages users to share your website by posting a Tweet containing a link to your content. Read on for more information about this feature and how you can use it.

What is the Tweet button:

The Tweet button is a simple web tool that allows users to post a Tweet to their Twitter profile from any website. Tweets posted using this button are pre-populated with a shortened link to the webpage from which the message was sent (your website). Users have the freedom to customize the Tweet's content before posting it. After posting their message, users are given the option to follow your and other related Twitter accounts, all without ever leaving your website.

What’s useful about it:

Sharing a link to a webpage you’ve found is a great way to spread information on Twitter. With the Tweet button, you can quickly share the webpage you’re viewing with all of your followers – you don’t have to go to twitter.com or go through the hassle of shortening links and cutting and pasting the desired URL into your message. You'll also be able to discover and follow other Twitter accounts relevant to the content you're viewing, all without interrupting your browsing. If you are a business, click here to learn more about using this feature on your own site.

How to use the Tweet button:

  1. Begin surfing the web (try one of the webpages above).
  2. When you see the Tweet button on a webpage that you feel like sharing, click it. (Fig. 1)
  3. If you're not already logged in to Twitter, you will be prompted by a pop-up box to log in.
  4. A box will appear that looks like the one below (Fig. 2). Your remaining characters are counted in the bottom right. Edit the Tweet if you would like to. 
  5. When your Tweet is ready, click “Tweet.”
  6. The box will then show you information about related Twitter accounts – you may follow these users, or simply close the box.
  7. Continue browsing the web. If you’d like to confirm that your Tweet posted correctly, visit your twitter.com profile.

Fig. 1

Fig. 2

How it benefits your website:

Users love to share and discover great content from across the web via Twitter. This button encourages them to share your website and to follow your Twitter account in the process. You'll increase traffic to your site and develop a larger Twitter audience.

How to put the Tweet button on your site:

  1. Go to https://twitter.com/about/resources/buttons#tweet
  2. Customize the Tweet button – choose pre-populated text for the message, and confirm which Twitter accounts you'd like to suggest to users. The main account you specify will become an @mention in the Tweet. (By default, we'll use the username of whichever account you're currently logged into in the button.)
  3. Copy and paste the code into the HTML of your website wherever you would like the button to appear.
  4. You're done!

Note: The optional Tweet counter for your button captures a sum of all Tweets and retweets of your content, so you can watch the message spread as people share it.

Availability:

The Tweet button is available for all websites. 

For more information on deepening your website's integration of Twitter features, visit dev.twitter.com

Still need help? Contact Support.

Was this article helpful?

Submitting...