anchor.diff:   * fb_button_init.js
    * File Summary: initializes the facebook sdk and contains login logic via facebook 
    */
  +
  +/* Constants */
  +var LOGIN_PATH = "/user/login";
  +
   $(document).ready(function() { 
   
  -  /* Constants */
  -  var LOGIN_PATH = "/user/login";
  +  init_fb();
  +
  +  FB.getLoginStatus(function(response) {
  +    if(response.authResponse){
  +      //console.log( "User is logged into facebook already!" );
  +      /* User is logged in to facebook, let him in */
  +      //console.log( response.authResponse );
  +      //post_to_url(LOGIN_PATH, response["authResponse"]);
  +    }
  +  });
  +
  +});
   
   
  -
  +// Make global so you can update new fb elements inserted via js
  +init_fb = function () {
     /*
      * This creates a hidden form and posts this data to rails
      *  A BETTER way would be to actually have a hidden form on the login page,
  
positive.code:       });
    }
  
    init_fb();
  
    FB.getLoginStatus(function(response) {
      if(response.authResponse){
        //console.log( "User is logged into facebook already!" );
        /* User is logged in to facebook, let him in */
        //console.log( response.authResponse );
        //post_to_url(LOGIN_PATH, response["authResponse"]);
      }
    });
  
    /* When a user clicks a button, */
    $('.fb-button').unbind('click').click( function(event) {
      //console.log("Button clicked!");
      /* FB.getLoginStatus allows you to determine if a user is 
       * logged into facebook.*/
      FB.getLoginStatus(function(response) {
  
negative.code:       post_to_url(LOGIN_PATH, response["authResponse"]);
      });
    });
  };
  