title: Integrating facebook login and facebook c# SDK - NOT a facebook app
body: <p>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.</p>
  
  <p>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).</p>
  
  <p>I found this piece of code without context here: <a href="http://facebooksdk.codeplex.com/wikipage?title=QuickStart%20using%20the%20API&amp;referringTitle=Documentation" rel="nofollow">Link</a></p>
  
  <pre><code>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
      }
  }
  </code></pre>
  
  <p>This looks really interesting, but I cannot figure out what the authorizer is set up and used.</p>
  
  <p>I am using MVC 3, but that should not really matter.</p>
  
  <p>Is it possible to use the facebook c# sdk for this - and how?</p>