Twitter developer resources


No matter where they appear, official Twitter assets should always function the way that they do in our apps.

Follow button

Make it easy for users to follow a Twitter account from any web page.


Generate a Tweet box pre-populated with your hashtag of choice.

Tweet buttons

Enable people to share your website or page by Tweeting your content to their followers.


Quickly engage users to Tweet directly to a particular username.

To further customise your buttons, read the documentation for Twitter Buttons. By using Twitter Buttons, you agree to the Developer Policy.



Take any Tweet and embed it directly in to the content of your article or website. Embedded tweets can display expanded media like photos, videos, and article summaries, and also include real-time Retweet and like counts. Embedded Tweets are more interactive and make it easy for readers to follow the Tweet author, reply, Retweet and like without leaving your page.

Every Tweet on Twitter or TweetDeck has a set of Tweet actions at the bottom, including reply, Retweet, like, and more. Click “More” and select “Embed Tweet.”

In return, you’ll get an HTML embed code. Copy and paste this directly into the article where you’d like the Tweet to appear. You’ll be able to preview how the Tweet will look before you post. If the Tweet is a reply, you’ll be given a checkbox inside the embed form that lets you include or exclude the rest of the conversation.

For more information on customisation, see our documentation on Embedded Tweets.



Replicate any public Twitter timeline on your website with one line of code. Users can expand Tweets to see cards inline, as well as live Retweet and like counts. An integrated Tweet box encourages users to respond or start new conversations, and the option to auto-expand media puts photos front and centre.

Add your own
To create a timeline, go to and sign in. Click on Settings, then select Widgets. From this page you can see a list of the timelines you’ve put together. You can also create new timelines.

Click the “Create new” button to build a new timeline for your website. Choose the type and complete the form. Save the timeline and we’ll generate some JavaScript to use on your site.

If you’re already including our ‘widgets.js’ JavaScript in your page to show Embedded Tweets or Twitter buttons, don’t worry about including this script again. It updates automatically to support new features.

For more information on customisation, see our documentation on Embedded Timelines.



Twitter Cards help you richly represent your content within Tweets across the web and on mobile devices. This gives users greater context and insight into the URLs shared on Twitter, and allows Twitter to send more engaged traffic to your site or app. Attach these cards to Tweets for a more engaging experience.

Summary card

This is the default card. It includes a title, description, thumbnail and Twitter account attribution.

Summary card with large image

Similar to the Summary card, but also has a prominently featured image with additional details and attribution.

Photo card

Only displays a photo. No text.

Gallery card

Displays four photos at once.

App card

Displays a mobile app, with a direct link to download.

Player card

Displays video or audio.

Product card

Designed to show product details.

Lead Generation card

Drives lead generation for your product or service. Available via the Twitter Ads Dashboard.

Website card

Previews your website and drives clickthrough traffic. Available via the Twitter Ads Dashboard.

Add a Twitter card in four simple steps:

Choose a card type. Don’t be afraid to experiment.

Add the required meta tags to your page.

Validate your meta tags.

Once it’s approved, Tweet the URL and view your card.

For more information on customisation, see our documentation on Twitter Cards.



The Twitter Certified Products Programme identifies the best products and services for businesses on Twitter. It consists of data resellers – licensed to syndicate Tweet content – and an ever-expanding list of leading solution providers in the Twitter ecosystem. If your organisation would like to become a Twitter Certified Product Partner, read the full requirements and apply here.



By using the Twitter marks, you agree to follow this policy as well as our Terms of Service and all Twitter rules and policies.

Twitter Inc. reserves the right to cancel, modify or change the permissions in this policy at any time at its sole discretion. For further information about use of the Twitter name and trademarks, email