Corrected FB Login Example

This commit is contained in:
Henry Mao 2017-04-12 19:26:53 -07:00 committed by GitHub
parent 11052bbb6f
commit e24fd7b64e
1 changed files with 3 additions and 2 deletions

View File

@ -301,8 +301,9 @@ LoginManager
}
console.log(`Login success with permissions: ${result.grantedPermissions.toString()}`);
// get the access token
const data = AccessToken.getCurrentAccessToken();
return AccessToken.getCurrentAccessToken();
})
.then(data => {
// create a new firebase credential with the token
const credential = firebase.auth.FacebookAuthProvider.credential(data.accessToken);