Mike 3 years ago
parent
commit
55880a2917
1 changed files with 2 additions and 0 deletions
  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 =
             'Thanks for logging in, ' + response.name + '!';
        
+        userId = response.email;
+
         // 取得email
         FB.api('/'+userId+'/?fields=id,name,email',
             'GET',