Permalink
Browse files

testing login and fetching info

  • Loading branch information...
1 parent 0acc35c commit 8735aa5bac48d30bd9cab9547a02623a1c3e07d8 @NotMyself NotMyself committed May 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Web/Views/Authentication/Index.cshtml
@@ -15,6 +15,7 @@
if (response.authResponse) {
console.log('User is connected to the application.');
var accessToken = response.authResponse.accessToken;
+ console.dir(response);
}
});
});
@@ -24,6 +25,7 @@
function updateButton(response) {
var userInfo = $('#user-info');
FB.api('/me', function (response) {
+ console.dir(response);
$('<img src="https://graph.facebook.com/' + response.id + '/picture">' + response.name).appendTo(userInfo);
});
};

0 comments on commit 8735aa5

Please sign in to comment.