Facebook released the
Facebook C# SDK alpha
in 2010.
You can find the details in
Developers this site.
Please find the code for connecting facebook and C#.
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class facebook_login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string host = Request.ServerVariables["HTTP_HOST"];
string facebookClientId =
System.Configuration.ConfigurationManager.AppSettings["FacebookClientId"];
string RedirectURL = "";
if (Request.QueryString["redirectURL"] != null)
{
RedirectURL = Request.QueryString["redirectURL"].ToString();
Session["RedirectURL"] = RedirectURL;
}
Response.Redirect(@"https://graph.facebook.com/oauth/authorize?client_id=" +
facebookClientId + "&redirect_uri=http://" + host +
@"/FBcallback.aspx&scope=publish_stream,offline_access,publish_actions");
}
}
You can find the detailed explanation about this in a CodeProject Article.
Please find the
LINK