Introduction

Dear Friends, A few months ago, I wrote an article here that displayed how to display Tweets from your timeline using HTML. Recently, Twitter updated its API and now allows users to create Widgets from your Twitter profile. This post illustrates displaying your Twitter timeline to your visitors on your website using Twitter Widgets.

What a Widget is?

A widget is a generic type of software application comprising a portable code intended for one or more different software platforms. The term is used to identify an application, user interface, or both, that is light and relatively simple and easy to use.
Benefits of Twitter Widgets

Configure Twitter Widgets

Once you have decided that you'll use Twitter widgets, lets us create a widget. For this you will need to use the following procedure:
image1.jpg
Image2.jpg
Image3.jpg
Image4.jpg

Work required on your website

If you are a blogger using WordPress, Blogger or any other blogging platforms, you already have an admin to paste this code to. In case you are a developer and want to place this code at a custom location of your website, please see the next section. In case you are not using any CMS and want to put this code at a custom place of your hand written website. You need to use the following procedure: You're done! The following is a sample code that shows the widget code in an HTML file.
  1. <html>
  2. <body>
  3. <a class="twitter-timeline" href="https://twitter.com/niteshluharuka" data-widget-id="343005309226323970">Tweets by @niteshluharuka</a>
  4. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  5. </body>
  6. </html>
Hope you like this article.
In case you encounter any issues, please let me know via comments.