body { text-align: center; } body { margin: 0; padding: 0; background: #e6e6e6; font-family: Arial, Helvetica, sans-serif; color: black; font-size: 12px; } return; } //We have the session. //Check for existing SNU. var onSuccess = function (result, context) { if(result=== "") { getFacebookUser(function(user) {FBConnectNewCharacterModal.open(user.name, user.email,user.birthday_date); }, ['name', 'email', 'birthday_date']); } else{ //Drop cookie document.getElementById("SNAccessToken").value = FB.getAccessToken(); document.getElementById("FacebookAssociation").value = "true"; if(document.forms.length == 1){ $('#FacebookLoginForm')[0].submit(); }else{ document.forms[1].submit(); } } }; var onError = function (result, context) { }; UserCheck.GetSocialNetworkUserName(1, FB.getAccessToken(), onSuccess, onError); } // no user, clear display function clearDisplay() { $('#user-info').fadeOut(1000); $('#facepile').fadeOut(1000); } // handle a session response from any of the auth related calls function handleSessionResponse(response) { // if we dont have a session, just hide the user info if (!response.authResponse) { clearDisplay(); return; } //Don't show the details if user is not logged into Roblox. return; // if we have a session, query for the user's profile picture and name getFacebookUser( function (user) { var markup = '
' +
' | ' +
'' +
' Hi ' + user.name + ' ' +
'Your Facebook is connected. | ' +
'
If you have multiple accounts, please sync your primary account with your Facebook.