Tutorial : Using Twitter OAuth and the Twitter API with ASP.NET and C#

I have just finished my first connection to Twitter using non open source software 😦 

It was faster to run a test using the tools already installed on my machine. 

To be short:

  1. install Visual Studio 2010 Express http://www.microsoft.com/express/downloads/
  2. install IIS 7 and all ASP.NET options using the Microsoft Web Platform Installer http://www.iis.net/webpi
  3. run as administrator the following command lines:
      32 bits: %windir%Microsoft.NETFrameworkv4.0.30319aspnet_regiis.exe –i
      64 bits: %windir%Microsoft.NETFramework64v4.0.30319aspnet_regiis.exe –i
  4. Create an account on http://www.twitter.com
  5. Run IIS 7 as administrator
  6. Create a new site called “nettwitter” and choose a port: e.g. 8081
  7. Create a new site using IIS7 named nettwitter

    Create a new site using IIS7 named nettwitter

  8. Update the application pool of the nettwitter site in order to .NET 4.0 target framework
  9. Update to .NET 4.0 the target framework of the nettwitter site

    Update to .NET 4.0 the target framework of the nettwitter site

  10. Run Visual Studio 2010 as Administrator
  11. Follow this twitter tutorial: http://www.giantflyingsaucer.com/blog/?p=2074
  12. Publish the web application using the following properties
  13. Properties to set for the deployment of the nettwitter site on IIS7

    Properties to set for the deployment of the nettwitter site on IIS7

  14. You should see your last tweets as described inside the post

I also tried the twitter API provided by http://www.twitterizer.net 

  1. run the sample from http://www.twitterizer.net/downloads/#general by running the Twitterizer2.3.1-examplesTwitterizerExampleApplications.sln project
  2. That’s all folks

  

Next time, I do the same exercise using Python; Then I may start to develop a tool to fasten and improve the visibility of the tweets (tweetdeck, twitter and the others quite sucks)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s