jeter20131220 3 anni fa
parent
commit
54d234d073
1 ha cambiato i file con 9 aggiunte e 2 eliminazioni
  1. 9 2
      desktop11/goto.js

+ 9 - 2
desktop11/goto.js

@@ -331,8 +331,15 @@ function fbLogin() {
   // FB 第三方登入,要求公開資料與email
   FB.login(function (response) {
     statusChangeCallback(response);
-    console.log('FB API回傳資料: ' + JSON.stringify(response));
-  }, { scope: 'public_profile,name,email' });
+    console.log(response);
+  }, { scope: 'public_profile,email' });
+
+  FB.login(function (response) {
+    statusChangeCallback(response);
+    console.log(response);
+  }, { scope: 'public_profile,name' });
+  
+  console.log('FB API回傳資料: ' + JSON.stringify(response));
 
   if (response.id) {
     // 設定欄位預設值