|
@@ -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 + '!';
|