Twitter : How To Get Latest Tweet Of Using API And Javascript

Posted by Ankur Gandhi in Twitter



tweet

twitter newimg Twitter : How To Get Latest Tweet Of Using API And JavascriptHello Friends,some days ago I thought to get my last/latest tweet of my twitter account to show it in my blog, So I have searched a lot to get latest tweet of my twitter account and finally I found one way by which we can get latest tweet of our account by adding two javascripts and some html. Below are steps to get latest tweet of account.

1. Copy Paste Below code Where we want to show latest/last tweet.

<div id="twitter_update_list"></div>

2. In this step paste two javascripts line given below below the code you have put in step 1. In the below javascript lines you will see fonts in red ‘hackingethics‘ which you have to replace by your twitter username.

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/hackingethics.json?callback=twitterCallback2&count=1"></script>

3. When you run your page you will get latest/last tweet of your twitter account, Now if you want to change its looking then you can do CSS changes to make it beautiful.

4. You can see I have made one twitter bird above beside my logo, When you mouse hover that twitter bird it will show you latest/last tweet.

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

  • bernard

    Very nice! But loading the tweet stops loading the page for a second. Is there a way to fix that?

  • http://twitter.com/3327designs Leo Fisher

    Put the script code before your end body tag.

  • http://www.pinkstuffgalore.blogspot.com bonz

    this helps a lot!
    thanks you!

    • http://www.hackingethics.com/ Ankur Gandhi

      Welcome. :)

  • http://www.facebook.com/oscotto Scott Patterson

    Genius… thanks!

  • Tsoloo

    XML error message: The reference to entity “count” must end with the ‘;’ delimiter i get this error. What should i do?

  • Catalysts SEO

    Thanks for sharing interesting information twitter relevant and After see entire blog, I going to through try to utilize this java script on my account… SEO services