Help Center

Adding the Tweet button to your website

Definition: The Tweet button allows you to quickly share the webpage you’re viewing with all of your followers. Clicking the Tweet button provides you with a pre-populated Tweet containing a link to that webpage, which you can customize before sending.

How to use the Tweet button:

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

How to put the Tweet button on your site:

  1. Go to https://twitter.com/about/resources/buttons
  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.