C# and Facebook
Facebook C# SDK dlls
You can interact with Facebook in C# by installing Facebook C# SDK dlls. The easiest way to do this is using NuGet. To add the reference, right click on “References”, and then click “Add Library Package Reference…”. From the Add Library Package Reference dialog do a search for “Facebook”. After the install completes click “Close”.
NuGet will do a few things automatically for us there. First, references for Facebook and Newtonsoft.Json will be added to the project. Second, some settings will be added to the web.config file. You also need to set our application so that it runs on the same port every time. So lets set the app to run on port 8080.
To give more scale to your Facebook app, you need to publish your app to Windows Azure. You can use the following links for this purpose:
1. http://blog.smarx.com/posts/asp-net-mvc-in-windows-azure
2. http://drew-prog.blogspot.com/2011/01/how-to-publish-aspnet-mvc-3-app-to.html
Lastly, you can use the following links for leveraging Facebook with C# and with Windows Azure:
1. Windows Azure SDK and Windows Azure Tools for Microsoft Visual Studio Prerequisite
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7a1089b6-4050-4307-86c4-9dadaa5ed018
2. Facebook C# SDK Prerequisite
http://facebooksdk.codeplex.com/
3. Building a Facebook Marketing App on Azure
http://www.devx.com/MS_Azure/Article/46308#fbid=r1C49LxPtVl
4. Facebook Connect
http://msdn.microsoft.com/en-us/windows/ee702803#
5. Facebook Platform
http://msdn.microsoft.com/en-us/windows/cc895481#
6. Writing your first Facebook application
http://blog.prabir.me/post/Facebook-CSharp-SDK-Writing-your-first-Facebook-Application.aspx#