1window.fbAsyncInit = function () { 2 FB.init({ 3 appId: "1208839585848556", 4 cookie: true, 5 xfbml: true, 6 version: "v3.3", // v2.10 7 }); 8 9 FB.Event.subscribe("auth.authResponseChange", function (response) { 10 if (response.status === "connected") { 11 FaceBookLoginAPI(); 12 } else if (response.status === "not_authorized") { 13 FB.login(); 14 } else { 15 FB.login(); 16 } 17 }); 18}; 19 20(function (d, s, id) { 21 var js, 22 fjs = d.getElementsByTagName(s)[0]; 23 if (d.getElementById(id)) return; 24 js = d.createElement(s); 25 js.id = id; 26 js.src = 27 "//connect.facebook.net/ko_KR/sdk.js#xfbml=1&version=v2.10&appId=1208839585848556"; 28 fjs.parentNode.insertBefore(js, fjs); 29})(document, "script", "facebook-jssdk"); 30 31function FaceBookLoginAPI() { 32 FB.api( 33 "/me?fields=id,name,picture.width(120).height(120).as(profile)", 34 function (response) { 35 if (response.id != undefined && response.id != null) { 36 var url = 37 "/member/procFacebookLogin?id=" + 38 response.id + 39 "&name=" + 40 response.name + 41 "&profile=" + 42 response.profile.data.url; 43 location.replace(url); 44 } 45 } 46 ); 47} 48 49$("#FacebookLoginBtn").on("click", function () { 50 FB.login(); 51});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.