Created
April 2, 2012 10:09
-
-
Save ahilles107/2282341 to your computer and use it in GitHub Desktop.
FlexSocial GG init + login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
}, function(){ | |
// run code when connection is ready | |
flex.social.gg.init(function(){ | |
$('.loginPage #loginWithGG').click(function(){ | |
flex.social.gg.login(function(res){ | |
console.log('res'); | |
// do something after login | |
}, function(res){ | |
// do something with res after failed login | |
// alert('something was failed'); | |
}); | |
return false; | |
}); | |
}); | |
}); | |
</script> | |
<body> | |
... | |
<a href="#" id="loginWithGG">Login with GG</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment