|
@@ -326,16 +326,25 @@ function loginNEMI(token) {
|
|
};
|
|
};
|
|
xhr.send("token=" + token);
|
|
xhr.send("token=" + token);
|
|
}
|
|
}
|
|
-// custom fb login button
|
|
|
|
-function fbLogin() {
|
|
|
|
- // FB 第三方登入,要求公開資料與email
|
|
|
|
|
|
+$("#fb-button").click(function(){
|
|
FB.login(function (response) {
|
|
FB.login(function (response) {
|
|
statusChangeCallback(response);
|
|
statusChangeCallback(response);
|
|
console.log(response);
|
|
console.log(response);
|
|
}, { scope: 'public_profile,email' });
|
|
}, { scope: 'public_profile,email' });
|
|
|
|
|
|
- console.log('FB API回傳資料: ' + JSON.stringify(response));
|
|
|
|
-}
|
|
|
|
|
|
+ // console.log('FB API回傳資料: ' + JSON.stringify(response));
|
|
|
|
+
|
|
|
|
+});
|
|
|
|
+// custom fb login button
|
|
|
|
+// function fbLogin() {
|
|
|
|
+// // FB 第三方登入,要求公開資料與email
|
|
|
|
+// FB.login(function (response) {
|
|
|
|
+// statusChangeCallback(response);
|
|
|
|
+// console.log(response);
|
|
|
|
+// }, { scope: 'public_profile,email' });
|
|
|
|
+
|
|
|
|
+// console.log('FB API回傳資料: ' + JSON.stringify(response));
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
// function fb_login() {
|
|
// function fb_login() {
|