title: Logging on to facebook
body: <p>Still trying to get off the ground, and it's not as easy as I was hoping. Think I've been through all the pages I could find on Google now, and still no luck.</p>
  
  <p>At the moment, I've reduced everything down to something really simple:</p>
  
  <pre><code> &lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="FacebookTest.WebForm1" %&gt;
  &lt;%@ Import Namespace="Facebook" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;
      &lt;/p&gt;
      &lt;% var app = new FacebookApp();
         if (app.Session == null)
         {%&gt;
          &lt;img id="fbLogin" src="login-button.png" /&gt;
              &lt;%
         }%&gt;
      &lt;div id="fb-root"&gt;&lt;/div&gt;
      &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          FB.init({ appId: '&lt;%:FacebookSettings.Current.AppId %&gt;', status: true, cookie: true, xfbml: true });
          $('#fbLogin').click(function () {
              FB.login(function (response) {
                  if (response.session) {
                      //window.location = '&lt;%--:Url.Action("Profile") --%&gt;'
                  } else {
                      // user cancelled login
                  }
              });
          });
      &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Still, there's nothing going on...Could this be a problem with cookies, as I'm running from localhost? I'm really struggling, and help would really be appreciated! My current code won't even allow me to click on the login button...</p>
  
  <p>Cheers!</p>