Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / HTML

Recent tweets

4.67/5 (7 votes)
3 Jan 2011CPOL 30.7K  
To get recent tweets of any user just with a tag. No code is required.
Just copy and paste this <div> and replace the user ID, and you are done.

XML
<div style="margin-right: 0px;color=black">
<div id="twitter_div">
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/prerakpatel143" id="twitter-link" style="display: block; text-align: right;"></a></div>
<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript">
</script>
<script src="http://twitter.com/statuses/user_timeline/prerakpatel143.json?callback=twitterCallback2&amp;count=5" type="text/javascript">
</script></div>


http://twitter.com/statuses/user_timeline/prerakpatel143.json gets you the tweets of prerakpatel143. You can set count of how many tweets you want. Here in this example, it is 5.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)