FB.login(function(response)
if (response.authResponse)

var date = new Date();
date.setTime(date.getTime()+(response.authResponse.expiresIn*1000));
var expires = “; expires=”+date.toGMTString();
document.cookie = “wp_fbs=”+response.authResponse.accessToken+expires+”; path=/”;

var param = insertParam(‘fb_login’, ‘1’);

if( jQuery(‘#modal-login input[name=”redirect_to”]’) != undefined
&& jQuery(‘#modal-login input[name=”redirect_to”]’).attr(“value”) != undefined
&& jQuery(‘#modal-login input[name=”redirect_to”]’).attr(“value”).length > 0)
param = param + insertParam(‘redirect_to’, jQuery(‘#modal-login input[name=”redirect_to”]’).attr(“value”));

document.location.search = param;
}
}, scope: ”);

}

<!–AJAX sign in code –>

Sign In:

Join Pink Is The New Blog:

<!–AJAX sign in code –>Lost Password:
A message will be sent to the email address of the account.

Credit:

Kanye West's New Album Might Be Called 'Rich Black American …