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

Hello 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="https://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="https://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.