Twitter from ASP.NET
Got this question yesterday and since it looked interesting to me I decided to dig into it.
Any chance we can get a simple tutorial on using Twitter framework in asp.net
Grabbing the stuff and posting to a site etc.
We will have to go at this in steps but I think this is something we can deal with easily. Besides, I’m using Twitter myself and having this code might just be useful.
While we could roll our own library, there is really no need to. Several libraries have already been written. Not that it’s all that hard, we’re just talking some HTTP requests.
Here are some you might want to try:
- http://code.google.com/p/twitterizer/
- http://devblog.yedda.com/index.php/twitter-c-library/
- http://rareedge.com/twitteroo/blog/
- http://code.google.com/p/tweetsharp/
For our samples we will be using Twitterizer because when I asked, that’s what the guy who asked the question is trying to use.
The first thing you’ll want to do is go to the Twitterizer link above and download the Twitterizer.DLL
Next, you’ll want to create an asp.net web project and add a reference to the twitterizer.DLL
To make sure everything is working correctly, we are going to go into the codebehind and hard-code the following:
- Log into the account
- Post a message
protected void Page_Load(object sender, EventArgs e) { Twitterizer.Framework.Twitter twit = new Twitterizer.Framework.Twitter ("Dave_Bush", "password"); twit.Status.Update("Test message from " + "twitterizer. See the code in " + "tomorrow's post."); }
Obviously, I’m not going to show you my password in the code. But if you go look at my Twitter messages, you WILL see that message.
Next post about Twitter, we’ll submit a message from a web form.
Other post in Twitter
- Twitter from ASP.NET - May 13th, 2009
- Twitter from ASP.NET – Simple GUI - May 14th, 2009
- Twitter from ASP.NET – Retrieving Statuses - May 21st, 2009
- Twitter From ASP.NET – Friends vs Followers - June 4th, 2009
- Friday Books – Twitter Power - June 5th, 2009
- Twitter Follower Obsessions - June 8th, 2009
- Twitter From ASP.NET – Direct Messages - June 15th, 2009
- Filtering the Internet Noise - December 10th, 2009
Other Related Items:
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition (Windows.Net)The first edition of this book was released at the 2001 Tech Ed conference in Atlanta, Georgia. Since that time, this text has been revised, tweaked, ... Read More >
Naxa NX-648 In Dash 250 Watt CD MP3 Player AM/FM Car Stereo ReceiverThis 250 watt 4 channel high power output receiver plays your favorite CDs or burnt CDs and is compatible with MP3 and WMA files. This receiver has a ... Read More >
Don't Mess With Me... Programmer on Long Sleeve Women's Cotton T-Shirt (in 9 colors)100% preshrunk heavyweight cotton; double-needle stitching throughout; seamless rib at neck; shoulder-to-shoulder tape; heather grey is 90% cotton, 10% polyester; fashion cut; 5/8" rib collar; fitted tapered sleeve.
If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!










Woot. Thank you dave. I cant wait to get a chance to try it out
i found this today too
http://code.google.com/p/twitterizer/source/browse/trunk/Twitterizer.TestApp/
Its an application
[...] 14, 2009 By: Dave Yesterday I posted a short description of how to get twitterizer installed in a web app. We left off making sure that the DLL was installed correctly but that’s about as far as we [...]
[...] Twitter from ASP.NET (Dave M. Bush) [...]
[...] Twitter from ASP.NET [...]
Excellent post!!
Thanks a ton Dave!!
I just downloaded the VSTS and performed the actions as u mentioned. it works like a magic!!
thanks again