65.9K
CodeProject is changing. Read more.
Home

Recent tweets

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.67/5 (7 votes)

Dec 9, 2010

CPOL
viewsIcon

30798

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.
<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.