뚝딱자전거의류/잡화 openDialog(getAlert('mb237'), "member_facebook_connect", {"width":"470","height":"250"}); }else if(res.result == true){ loadingStop("body",true); openDialogAlert(res.msg,'400','180',function(){ document.location.reload(); }); }else{ loadingStop("body",true); openDialogAlert(res.msg,'400','140',function(){}); } } }); } }); } else if (response.status == 'not_authorized' || response.status == 'unknown') { //연결을 취소하셨습니다. openDialogAlert(getAlert('mb238'),'400','160',function(){}); // 로그아웃된 경우 isLogin = false; if (fbId != "") initializeFbTokenValues(); if (fbUid != "") initializeFbUserValues(); } } function handelStatusChangebiz(response) { if (response && response.status == 'connected') { // 로그인 isLogin = true; initializeFbTokenValues(); initializeFbUserValues(); fbId = response.authResponse.userID; fbAccessToken = response.authResponse.accessToken; FB.api('/me', function(response) { fbUid = response.email; fbName = response.name; if (fbName != "") { loadingStart("body",{segments: 12, width: 15.5, space: 6, length: 13, color: '#000000', speed: 1.5}); $.ajax({ 'url' : '../sns_process/facebookloginck', 'data' : {'mtype':'biz'}, 'type' : 'post', 'dataType': 'json', 'success': function(res) { if(res.result == 'emailck'){//이메일이 등된 경우 //회원 통합하기 로그인해 주세요. openDialog(getAlert('mb237'), "member_facebook_connect", {"width":"470","height":"250"}); }else if(res.result == true){ loadingStop("body",true); openDialogAlert(res.msg,'400','180',function(){ document.location.reload(); }); }else{ loadingStop("body",true); openDialogAlert(res.msg,'400','140',function(){}); } } }); } }); } else if (response.status == 'not_authorized' || response.status == 'unknown') { //연결을 취소하셨습니다. openDialogAlert(getAlert('mb238'),'400','160',function(){}); // 로그아웃된 경우 isLogin = false; if (fbId != "") initializeFbTokenValues(); if (fbUid != "") initializeFbUserValues(); } } //회원통합을 위한 로그인 function handelStatusChangeconnect(response) { if (response && response.status == 'connected') { // 로그인 isLogin = true; initializeFbTokenValues(); initializeFbUserValues(); fbId = response.authResponse.userID; fbAccessToken = response.authResponse.accessToken; FB.api('/me', function(response) { fbUid = response.email; fbName = response.name; if (fbName != "") { loadingStart("body",{segments: 12, width: 15.5, space: 6, length: 13, color: '#000000', speed: 1.5}); var userid = $("#facebook_userid").val(); var password = $("#facebook_password").val(); $.ajax({ 'url' : '../sns_process/facebookloginck', 'data' : {'facebooktype':'mbconnect','userid':userid, 'password':password}, 'type' : 'post', 'dataType': 'json', 'success': function(res) { if(res.result == true){ loadingStop("body",true); openDialogAlert(res.msg,'400','180',function(){ document.location.reload(); }); }else{ loadingStop("body",true); openDialogAlert(res.msg,'400','140',function(){}); } } }); } }); } else if (response.status == 'not_authorized' || response.status == 'unknown') { //연결을 취소하셨습니다. openDialogAlert(getAlert('mb238'),'400','160',function(){}); // 로그아웃된 경우 isLogin = false; if (fbId != "") initializeFbTokenValues(); if (fbUid != "") initializeFbUserValues(); } } //회원통합하지 않고 가입하기 function handelStatusChangenoconnect(response) { if (response && response.status == 'connected') { // 로그인 isLogin = true; initializeFbTokenValues(); initializeFbUserValues(); fbId = response.authResponse.userID; fbAccessToken = response.authResponse.accessToken; FB.api('/me', function(response) { fbUid = response.email; fbName = response.name; if (fbName != "") { loadingStart("body",{segments: 12, width: 15.5, space: 6, length: 13, color: '#000000', speed: 1.5}); $.ajax({ 'url' : '../sns_process/facebookloginck', 'data' : {'facebooktype':'noconnect'}, 'type' : 'post', 'dataType': 'json', 'success': function(res) { if(res.result == true){ loadingStop("body",true); openDialogAlert(res.msg,'400','180',function(){ document.location.reload(); }); }else{ loadingStop("body",true); openDialogAlert(res.msg,'400','140',function(){}); } } }); } }); } else if (response.status == 'not_authorized' || response.status == 'unknown') { //연결을 취소하셨습니다. openDialogAlert(getAlert('mb238'),'400','160',function(){}); // 로그아웃된 경우 isLogin = false; if (fbId != "") initializeFbTokenValues(); if (fbUid != "") initializeFbUserValues(); } } function initializeFbTokenValues() { fbId = ""; fbAccessToken = ""; } function initializeFbUserValues() { fbUid = ""; fbName = ""; } function logout(){ // 로그아웃된 경우 FB.logout(); isLogin = false; if (fbId != "") initializeFbTokenValues(); if (fbUid != "") initializeFbUserValues(); }
상위 카테고리 자전거의류/잡화 (3개 카테고리)