I downloaded the samples and the 5.0.3 beta of the SDK, and pretty quickly got a facebook app up and running inside facebook - great and super easy.
However, I want to use facebook only as an authorization-mechanism, and I cannot figure out how to do that from the examples and documentation (actually I was unable to find any documentation apart from a few examples here and there).
I found this piece of code without context here: Link
protected void Page_Load(object sender, EventArgs e)
{
if (!authorizer.IsAuthorized())
{
var authurl = authorizer.GetLoginUrl(new HttpRequestWrapper(Request));
CanvasRedirect(authurl.ToString());
}
else
{
LoggedIn(); // function to call when the user is logged in to init the page
}
}
This looks really interesting, but I cannot figure out what the authorizer is set up and used.
I am using MVC 3, but that should not really matter.
Is it possible to use the facebook c# sdk for this - and how?