tag:blogger.com,1999:blog-5615146790866724994.post-88965226283733741722008-01-20T12:06:00.000-08:002008-01-20T12:23:56.794-08:00Building Facebook Applications with ASP.NETI have recently started playing with the Facebook platform. The more familiar I become with developing for the Facebook platform, the more excited I get.<br /><br />With the release of the <a href="http://www.codeplex.com/FacebookToolkit" target="_blank">Facebook Developer Toolkit</a> by Clarity Consulting, Facebook development for .NET programmers has become very comfortable. I've been developing for the Microsoft .NET platform for several years and it was nice to learn that I could leverage this knowledge and experience when developing for Facebook.<br /><br />It must be noted that I was able to get the IFRAME version of the Facebook application working immediately. However, I had been struggling exactly a day to get the FBML version of my "Hello World" Facebook application working.<br /><br />To help fellow programmers, I have created a very simple Facebook application. The Visual Studio 2005 project can be downloaded from here: <a href="http://www.snapdrive.net/files/349810/MyFacebookApp.zip" target="_blank">http://www.snapdrive.net/files/349810/MyFacebookApp.zip</a>.<br /><br />My application is located at: <a href="http://apps.facebook.com/facebookdemoapp" target="_blank">http://apps.facebook.com/facebookdemoapp</a> and a screen-shot of it is shown below. As you can see, for now the application doesn't do much. It just greets a Facebook user.<br /><br /><a href="http://bp1.blogger.com/_UwePAMT2t7g/R5Os5gl2iyI/AAAAAAAAAU4/92T1Rwk9rpI/s1600-h/Facebook_Screenshot1.gif" target="_blank"><img id="BLOGGER_PHOTO_ID_5157656102270569250" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://bp1.blogger.com/_UwePAMT2t7g/R5Os5gl2iyI/AAAAAAAAAU4/92T1Rwk9rpI/s320/Facebook_Screenshot1.gif" border="0" /></a><br /><br />The screen-shots below show exact settings of the application in the Facebook application settings. Important changes are given in red circles and I have added some comments in red color as well.<br /><br /><b>Base Options</b><br /><br /><a href="http://bp2.blogger.com/_UwePAMT2t7g/R5Osnwl2ixI/AAAAAAAAAUw/ALOj9uD4X7A/s1600-h/BaseOptions.gif" target="_blank"><img id="BLOGGER_PHOTO_ID_5157655797327891218" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://bp2.blogger.com/_UwePAMT2t7g/R5Osnwl2ixI/AAAAAAAAAUw/ALOj9uD4X7A/s320/BaseOptions.gif" border="0" /></a><br /><br /><b>Installation Options</b><br /><br /><a href="http://bp0.blogger.com/_UwePAMT2t7g/R5OrqQl2ivI/AAAAAAAAAUg/AHjx57h2Xjw/s1600-h/InstallationOptions.gif" target="_blank"><img id="BLOGGER_PHOTO_ID_5157654740765936370" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://bp0.blogger.com/_UwePAMT2t7g/R5OrqQl2ivI/AAAAAAAAAUg/AHjx57h2Xjw/s320/InstallationOptions.gif" border="0" /></a><br /><br /><b>Integration Points</b><br /><br /><a href="http://bp2.blogger.com/_UwePAMT2t7g/R5Or8wl2iwI/AAAAAAAAAUo/fPLkHB5Rh2A/s1600-h/IntegrationPoints.gif" target="_blank"><img id="BLOGGER_PHOTO_ID_5157655058593516290" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://bp2.blogger.com/_UwePAMT2t7g/R5Or8wl2iwI/AAAAAAAAAUo/fPLkHB5Rh2A/s320/IntegrationPoints.gif" border="0" /></a><br /><br />In order to get your ASP.NET based Facebook application working, obviously you will need an ASP.NET hosting.<br /><br />The only problem that I see now is debugging the application. However, I have solved this problem. Not a very elegant solution, but gets the job done. More about it will be addressed in the next post.<br /><br />So, stay tuned and don't forget to <a href="http://www.prosoftprogramming.com/feeds/posts/default" target="_blank">subscribe to my RSS feed</a>.George S.http://www.blogger.com/profile/10755687529493368289noreply@blogger.com