<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Display Your Twitter Feed using ASP.NET</title>
	<atom:link href="http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/</link>
	<description>Web Development Tools, Ideas, Techniques and Resources</description>
	<lastBuildDate>Fri, 27 Aug 2010 17:13:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Matthew Paulson</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-213</link>
		<dc:creator>Matthew Paulson</dc:creator>
		<pubDate>Wed, 24 Mar 2010 16:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-213</guid>
		<description>Hi Brian,

You will want to use a for loop instead of a foreach loop, which will look something like this:

int TweetLimit = thisCollection.Count;
if(TweetLimit &gt; 4) {TweetLimit = 4; }

string TwitterCode = “”;
for(int x=0; x&lt;TweetLimit; x++)
{

TimeSpan thisSpan = new TimeSpan();
thisSpan = DateTime.Now.Subtract(thisCollection[x].Created);

string TimeBetween = “”;
if (thisSpan.Days &gt; 0) { TimeBetween = thisSpan.Days.ToString() + ” days ago”; }
else if (thisSpan.Hours &gt; 0) { TimeBetween = thisSpan.Days.ToString() + ” hours ago”;}
else if (thisSpan.Minutes &gt; 0) { TimeBetween = thisSpan.Days.ToString() + ” minutes ago”;}
else if (thisSpan.Seconds &gt; 0) { TimeBetween = thisSpan.Days.ToString() + ” seconds ago”;}

TwitterCode += ” + thisCollection[x].Text + ” &lt;a href=&quot;//twitter.com/”&quot; rel=&quot;nofollow&quot;&gt;” + TimeBetween + “&lt;/a&gt;”;
}

The syntax may not be entirely correct (I wrote it in notepad, not VS), but it will give you an idea of what to do. Also please take note of Ricky&#039;s comment below that the API is getting re-written. Feel free to email me if you have any more questions.</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>You will want to use a for loop instead of a foreach loop, which will look something like this:</p>
<p>int TweetLimit = thisCollection.Count;<br />
if(TweetLimit &gt; 4) {TweetLimit = 4; }</p>
<p>string TwitterCode = “”;<br />
for(int x=0; x<tweetlimit ; x++)<br />
{</p>
<p>TimeSpan thisSpan = new TimeSpan();<br />
thisSpan = DateTime.Now.Subtract(thisCollection[x].Created);</p>
<p>string TimeBetween = “”;<br />
if (thisSpan.Days > 0) { TimeBetween = thisSpan.Days.ToString() + ” days ago”; }<br />
else if (thisSpan.Hours > 0) { TimeBetween = thisSpan.Days.ToString() + ” hours ago”;}<br />
else if (thisSpan.Minutes > 0) { TimeBetween = thisSpan.Days.ToString() + ” minutes ago”;}<br />
else if (thisSpan.Seconds > 0) { TimeBetween = thisSpan.Days.ToString() + ” seconds ago”;}</p>
<p>TwitterCode += ” + thisCollection[x].Text + ” &lt;a href=&#8221;//twitter.com/”&#8221; rel=&#8221;nofollow&#8221;&gt;” + TimeBetween + “”;<br />
}</p>
<p>The syntax may not be entirely correct (I wrote it in notepad, not VS), but it will give you an idea of what to do. Also please take note of Ricky&#8217;s comment below that the API is getting re-written. Feel free to email me if you have any more questions.</tweetlimit></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-212</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Wed, 24 Mar 2010 13:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-212</guid>
		<description>Thanks for this, I found it a great help. I&#039;m having trouble with controlling the amount of Tweets that appear on screen. How can i limit this to only 3 or 4 of the latest. Also my times are only showing 0secs or 0 hours. Please excuse me as I&#039;m new to ASP.net</description>
		<content:encoded><![CDATA[<p>Thanks for this, I found it a great help. I&#8217;m having trouble with controlling the amount of Tweets that appear on screen. How can i limit this to only 3 or 4 of the latest. Also my times are only showing 0secs or 0 hours. Please excuse me as I&#8217;m new to ASP.net</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Paulson</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-206</link>
		<dc:creator>Matthew Paulson</dc:creator>
		<pubDate>Tue, 23 Mar 2010 15:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-206</guid>
		<description>Ricky - Thanks for the update about the API status change. I&#039;ll put a note on the post and write an updated example using the new authentication methods.</description>
		<content:encoded><![CDATA[<p>Ricky &#8211; Thanks for the update about the API status change. I&#8217;ll put a note on the post and write an updated example using the new authentication methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-205</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Tue, 23 Mar 2010 14:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-205</guid>
		<description>Thanks for the great write up on my little project. :)

Twitterizer is undergoing a complete re-write, since BASIC authentication is going away in favor of OAuth. I&#039;m trying to let everyone know myself so that stale tutorials aren&#039;t left all over the place, since these kinds of samples will stop working in June.

If you have any questions about the new version, feel free to contact me directly (be sure to mention this post so I know how you found me). If you make a follow up tutorial, let me know so I can link to your site on our new tutorials page.</description>
		<content:encoded><![CDATA[<p>Thanks for the great write up on my little project. <img src='http://www.adventuresindevelopment.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Twitterizer is undergoing a complete re-write, since BASIC authentication is going away in favor of OAuth. I&#8217;m trying to let everyone know myself so that stale tutorials aren&#8217;t left all over the place, since these kinds of samples will stop working in June.</p>
<p>If you have any questions about the new version, feel free to contact me directly (be sure to mention this post so I know how you found me). If you make a follow up tutorial, let me know so I can link to your site on our new tutorials page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kartikeya</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-191</link>
		<dc:creator>Kartikeya</dc:creator>
		<pubDate>Tue, 09 Feb 2010 09:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-191</guid>
		<description>I am using Twitterizer and my code is as follow:

string uname = &quot;test@test.com&quot;;
            string passwd = &quot;XXXXXX&quot;;
            Twitter t = new Twitter(uname, passwd);
            TwitterParameters paras = new TwitterParameters();
            paras.Add(TwitterParameterNames.Count, 10);
            TwitterStatusCollection tsc = t.Status.UserTimeline(paras);
            

            foreach (TwitterStatus tStatus in tsc)
            {
                strResponse = strResponse + tStatus.Text + &quot;&quot; + tStatus.Created + &quot;&quot; ;
            }

Now while getting the text using tStatus.Text , how can I create the link over url that iam getting in response. Right now it&#039;s displaying the text in plain format.
e.g.,  Check out Facebook viewed as riskiest social network by companies http://goo.gl/fb/s4Fw .

Is there is any way to get the inner html text in response?</description>
		<content:encoded><![CDATA[<p>I am using Twitterizer and my code is as follow:</p>
<p>string uname = &#8220;test@test.com&#8221;;<br />
            string passwd = &#8220;XXXXXX&#8221;;<br />
            Twitter t = new Twitter(uname, passwd);<br />
            TwitterParameters paras = new TwitterParameters();<br />
            paras.Add(TwitterParameterNames.Count, 10);<br />
            TwitterStatusCollection tsc = t.Status.UserTimeline(paras);</p>
<p>            foreach (TwitterStatus tStatus in tsc)<br />
            {<br />
                strResponse = strResponse + tStatus.Text + &#8220;&#8221; + tStatus.Created + &#8220;&#8221; ;<br />
            }</p>
<p>Now while getting the text using tStatus.Text , how can I create the link over url that iam getting in response. Right now it&#8217;s displaying the text in plain format.<br />
e.g.,  Check out Facebook viewed as riskiest social network by companies <a href="http://goo.gl/fb/s4Fw" rel="nofollow">http://goo.gl/fb/s4Fw</a> .</p>
<p>Is there is any way to get the inner html text in response?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-190</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 08 Feb 2010 21:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-190</guid>
		<description>Great post, this saved me a bit of time and work, but I was wondering if there&#039;s a quick way to display only the last five updates?  I&#039;ll keep poking around and if I find something, post the solution.</description>
		<content:encoded><![CDATA[<p>Great post, this saved me a bit of time and work, but I was wondering if there&#8217;s a quick way to display only the last five updates?  I&#8217;ll keep poking around and if I find something, post the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-133</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 27 Oct 2009 16:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-133</guid>
		<description>Where you have:

twStatus.TwitterUser.UserName

I was actually getting my display name instead of my username, so my URLs were twitter.com/Jeremy Coulson instead of twitter.com/mrcoulson.  I replaced that with:

twStatus.TwitterUser.ScreenName

Now it&#039;s successful.  Thanks for this information!  I didn&#039;t understand how to actually display the tweets until I saw this stuff.

Jeremy</description>
		<content:encoded><![CDATA[<p>Where you have:</p>
<p>twStatus.TwitterUser.UserName</p>
<p>I was actually getting my display name instead of my username, so my URLs were twitter.com/Jeremy Coulson instead of twitter.com/mrcoulson.  I replaced that with:</p>
<p>twStatus.TwitterUser.ScreenName</p>
<p>Now it&#8217;s successful.  Thanks for this information!  I didn&#8217;t understand how to actually display the tweets until I saw this stuff.</p>
<p>Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijayamalla</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-132</link>
		<dc:creator>vijayamalla</dc:creator>
		<pubDate>Tue, 27 Oct 2009 15:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-132</guid>
		<description>Hey, I really liked the code that put in for the Twitter.
but there is a problem with the time, i used the DateTime.Now but when i debugged, the status variable is 4hrs ahead to the time it was created., can you please help with this?
is that some timezone thing?</description>
		<content:encoded><![CDATA[<p>Hey, I really liked the code that put in for the Twitter.<br />
but there is a problem with the time, i used the DateTime.Now but when i debugged, the status variable is 4hrs ahead to the time it was created., can you please help with this?<br />
is that some timezone thing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Brown</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-119</link>
		<dc:creator>Adam Brown</dc:creator>
		<pubDate>Wed, 12 Aug 2009 14:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-119</guid>
		<description>Thanks Matthew, you have just saved me several hours of xml headaches by showing me this code. 

Great post</description>
		<content:encoded><![CDATA[<p>Thanks Matthew, you have just saved me several hours of xml headaches by showing me this code. </p>
<p>Great post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: L Heyns</title>
		<link>http://www.adventuresindevelopment.com/2009/06/21/how-to-display-your-twitter-feed-using-aspnet/comment-page-1/#comment-118</link>
		<dc:creator>L Heyns</dc:creator>
		<pubDate>Tue, 11 Aug 2009 20:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.adventuresindevelopment.com/?p=145#comment-118</guid>
		<description>Can the feeds be private, so the viewer as to enter their twitter password the first time they view the embedded feeds?</description>
		<content:encoded><![CDATA[<p>Can the feeds be private, so the viewer as to enter their twitter password the first time they view the embedded feeds?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
