Latest Articles & Tutorials

Don't be stingy, Share this post with others!

Get your latest twitter updates without using a plugin

I know there are many plugins out there that are capable of grabbing your twitter feed, but what if you do not want to use a plugin? Today I have come across a line of code that contains pure JavaScript and HTML and will grab your twitter feed.

The Code

Copy and paste the code below where you would like for your latest twits to show.

<div id="twitter_update_list">
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/yourtwitternamehere.json?callback=twitterCallback2&count=Number of twits you want to show goes here"></script>
</div><!--end twitter_update_list-->

This is a quick and easy solution for those who are searching for ways to add twitter feed to their sites using pure code and not a plugin. I hope this worked well for you all as it did for me.

Don't be stingy, Share this post with others!

Marcell Purham

Marcell is the founder of Webdevtuts. He is also a web designer & developer who loves to design and develop websites. If you're looking for him you can find him via @webdevtuts


More posts by Marcell Purham →
, , , , , , , , , , , .

3 Responses to Get your latest twitter updates without using a plugin

  1. June 14, 2010 at 12:55 am Demetrice

    Great Tutorial. Very simple and fast

  2. Just wondering why you’d use this instead of the styleable twitter widget available from twitter themselves?
    http://twitter.com/about/resources/widgets/widget_profile

    It is as much pure code as the solution provided here (which I’m taking to basically mean no server-side code for contacting twitter is required).

    Also of note – the code you have isn’t valid HTML. tags are only allowed in the and elements (the preference being to put them just before your closing tag to allow fast page loading).

    Client-side only solutions are great though. I’m using one on my site now (still under construction) to avoid having any server-side scripting at all :)

Close