Created
February 8, 2017 20:05
-
-
Save pfulop/278bb6e89a600c8083f2ad192262c7d5 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
<LoginButton | |
publishPermissions={["publish_actions"]} | |
onLoginFinished={ | |
(error, result) => { | |
if (error) { | |
alert("login has error: " + result.error); | |
} else if (result.isCancelled) { | |
alert("login is cancelled."); | |
} else { | |
AccessToken.getCurrentAccessToken().then( | |
(data) => { | |
this.props.loginWithFacebook(data.accessToken.toString()); | |
} | |
) | |
} | |
} | |
} | |
onLogoutFinished={() => alert("logout.")}/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment