Skip to content

Commit

Permalink
updated example for oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganstreet committed Sep 2, 2011
1 parent 248c0f1 commit db51fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ window.fbAsyncInit = function () {
});

FB.getLoginStatus(function(response) {
if (response.session) {
if (response.authResponse) {
$("#login-status").html("Logged in");
} else {
$("#login-status").html("Not logged in");
Expand All @@ -65,7 +65,7 @@ window.fbAsyncInit = function () {
$("#btnLogin").click(function (e) {
e.preventDefault();
FB.login(function (response) {
if (response.session) {
if (response.authResponse) {
console.log("Logged in");
$("#login-status").html("Logged in");
} else {
Expand Down

0 comments on commit db51fa5

Please sign in to comment.