Tweet Button

Tweet Button FAQ

  1. Does the Tweet Button support other languages?
  2. What are the dimensions of the Tweet Button?
  3. I want to use multiple Tweet Buttons on my page. Is there anything I should know?
  4. Can I control the order of the recommended accounts?
  5. Does the Tweet Button work over HTTPS?

If you have another question which isn’t answered let us know on the Developer Forums.

Does the Tweet Button support other languages?

Yes. Include a lang parameter to explicitly set the language of the Tweet button. View the Twitter for Websites supported languages list to learn more about supported languages.

What are the dimensions of the Tweet Button?

The Tweet button is 55 pixels wide and 20 pixels high.

Internationalized Tweet Button

Internationalized Tweet buttons have slightly different dimensions.

Language lang code Dimensions
English en 55px by 20px
Japanese ja 80px by 20px
Spanish es 64px by 20px

I want to use multiple Tweet Buttons on my page. Is there anything I should know?

If you want to use more than one Tweet Button on a page you there are a couple of things you will want to check.

  1. If you are using the JavaScript Tweet Button, make sure you only include the widgets.js JavaScript once. The best place to put the JavaScript is before the closing </body>
  2. To avoid duplication of content on your page consider using the rel="me" and rel="canonical" tags in place of the via and url data points on each Tweet Button.

Can I control the order of the recommended accounts?

Only two accounts are displayed and by default the via user is shown first with the first related account shown afterwards. If the user is a follower of the via user the Share Box will instead show the first two related accounts the user isn’t a follower of. No accounts are displayed if the user follows all of the suggested accounts (via and related).

Learn more about related accounts.

Does the Tweet Button work over HTTPS?

Yes, the Tweet Button works over HTTPS.