jeter20131220 3 년 전
부모
커밋
2953ad91cf
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      desktop11/goto.js

+ 3 - 2
desktop11/goto.js

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