title: how to trigger FB.login() on page load?
body: <p><code>FB.login()</code> seems to only work if triggered by a click event. I want it to fire on page load. I've tried using the <code>trigger()</code> method, but that didn't work. I've also tried triggering it using <code>jQuery('#button').click()</code>. </p>
  
  <pre><code>$(function(){
      //this is logging so I know the js is loading properly
  
      console.log("script loaded");
  
      $('button').button();
  
      $('#button').click(function(){   
          FB.login(function(response) {
              console.log('FBLOGIN firing');
              if(response.status === "connected"){
                  var uID = response.authResponse.userID;
                  FB.api('/me', function(response) {
                      var name = response.name;             
                      if(response.location){
                          var response = response.location.name;
                      }else{
                          alert("The Bringer Network needs your current city to be set in your Facebook 'about' section. Please make it public for our use");
                      } 
                  });//closes fb.api
              }else if(response.status === "not_authorized"){
                  //authCancelled. redirect
              }
          },{scope: 'user_location,user_likes'});
      });//closes click
      jQuery('#button').click();
  });
  </code></pre>