Wednesday, January 5, 2011

Get Recent tweets from twitter in ASP.net

 
To do this just paste the highlighted <div> on your page. and change user id with your user id.
Here http://twitter.com/statuses/user_timeline/userid.json gets you the tweets of userid for example
here is mine niranjankala.You can set count of how many tweets you want. Here in this example,
it is 5.
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <div style="margin-right: 0px;color=black">
            <div id="twitter_div">
                <ul id="twitter_update_list"></ul>
<a href="http://twitter.com/niranjankala" id="twitter-link" style="display: block; text-align: right;">
</a>
</div>
<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript">
</script>
                                                          callback=twitterCallback2&amp;count=5" type="text/javascript">
</script>
</div>
    </div>
    </form>
</body>
</html>

No comments :

Post a Comment