Click here to Skip to main content
15,881,852 members
Articles / Web Development / HTML
Tip/Trick

Recent tweets

Rate me:
Please Sign up or sign in to vote.
4.67/5 (7 votes)
3 Jan 2011CPOL 28.5K   7   10
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)


Written By
Software Developer
India India
Working since 2006 on VBA, VB6, VB.Net, C#, ASP.Net, MSSQL




  • Courage is not the absence of fear, but rather the judgement that something is more important than fear.
  • The fear of suffering is worse than the suffering itself.
  • People need not fear the unknown if they are capable of achieving what they need and want.
  • Every blessing ignored becomes a curse.
  • Sometimes what's in your head isn't as crazy as you think.
  • We never really grow up, we only learn how to act in public.
  • You can make very bad teams with very good individuals.
  • Admitting mistakes means you have a sense of responsibility in your actions and that shows you are more matured than almost anyone. -Nithin


Comments and Discussions

 
Generalu should have shared how it works Pin
satishmachineni18-Jan-12 17:46
satishmachineni18-Jan-12 17:46 
GeneralReason for my vote of 4 Should provide some description abou... Pin
Jαved29-Nov-11 19:19
professionalJαved29-Nov-11 19:19 
GeneralReason for my vote of 4 Good tip. Pin
Wonde Tadesse25-Feb-11 8:12
professionalWonde Tadesse25-Feb-11 8:12 
GeneralReason for my vote of 5 Hey, it's a cute share...Keep it up. Pin
thatraja4-Jan-11 23:52
professionalthatraja4-Jan-11 23:52 
GeneralReason for my vote of 5 Excellent man it good one .. awesome Pin
Pranay Rana3-Jan-11 23:25
professionalPranay Rana3-Jan-11 23:25 
GeneralReason for my vote of 4 A description of why it works would ... Pin
Dr.Walt Fair, PE10-Dec-10 12:51
professionalDr.Walt Fair, PE10-Dec-10 12:51 
GeneralMore info Pin
kashter4-Jan-11 23:24
kashter4-Jan-11 23:24 
GeneralRe: More info Pin
Prerak Patel4-Jan-11 23:50
professionalPrerak Patel4-Jan-11 23:50 
GeneralGood one.. Pin
vikas amin4-Jan-11 10:06
vikas amin4-Jan-11 10:06 
GeneralRe: Good one.. Pin
Prerak Patel4-Jan-11 20:21
professionalPrerak Patel4-Jan-11 20:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.