code: function() {	
  		console.warn("FB.login...");
  		FB.login(function(response) {
  			console.warn("FB.login", response);
  			if (response.status === 'connected') {
  				doFBLogin_connected(response);
  			} else {
  				// fail
  			}
  		}); //, {scope: 'public_profile,email,user_friends'}); // what permissions??
  		// see https://developers.facebook.com/docs/facebook-login/permissions
  	}
docs: Annoyingly -- this is likely to fail the first time round! They use a popup which gets blocked :( Possible fixes: Load FB on page load (but then FB track everyone) TODO Use a redirect (i.e. server side login)