Mike 3 年之前
父节点
当前提交
55880a2917
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop11/index.html

+ 2 - 0
desktop11/index.html

@@ -76,6 +76,8 @@ function testAPI() {                      // Testing Graph API after login.  See
         document.getElementById('status').innerHTML =
         document.getElementById('status').innerHTML =
             'Thanks for logging in, ' + response.name + '!';
             'Thanks for logging in, ' + response.name + '!';
        
        
+        userId = response.email;
+
         // 取得email
         // 取得email
         FB.api('/'+userId+'/?fields=id,name,email',
         FB.api('/'+userId+'/?fields=id,name,email',
             'GET',
             'GET',