Created
March 19, 2012 15:02
-
-
Save ahilles107/2115450 to your computer and use it in GitHub Desktop.
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 | |
$('body button.login').click(function(){ | |
flex.social.facebook.login(function(res){ | |
flex.social.facebook.getUser(function(userData){ | |
console.log(userData); | |
}); | |
}); | |
}) | |
... | |
// in body section create login button | |
<button class="login">Login with Facebook</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment