Skip to content

Instantly share code, notes, and snippets.

@ahilles107
Created April 2, 2012 10:09
Show Gist options
  • Save ahilles107/2282341 to your computer and use it in GitHub Desktop.
Save ahilles107/2282341 to your computer and use it in GitHub Desktop.
FlexSocial GG init + login
...
}, 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