Mike 3 лет назад
Родитель
Сommit
78e9a97453
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      desktop11/index.html

+ 2 - 2
desktop11/index.html

@@ -48,7 +48,7 @@ function checkLoginState() {               // Called when a person is finished w
     });
 
     FB.login(function(response) {
-        console('FB.login: ' + response);
+        console.log('FB.login: ' + response);
     }, {scope: 'public_profile,email'});
 }
 
@@ -68,7 +68,7 @@ window.fbAsyncInit = function() {
 function testAPI() {                      // Testing Graph API after login.  See statusChangeCallback() for when this call is made.
     console.log('Welcome!  Fetching your information.... ');
     FB.api('/me', function(response) {
-        console('testAPI(): ' + response);
+        console.log('testAPI(): ' + response);
         console.log('Successful login for: ' + response.name + ', email = ' + response.email);
         document.getElementById('status').innerHTML =
             'Thanks for logging in, ' + response.name + '!';