when I click on login the popup lets me log in to facebook and once login I can't get the access token back. But if I click on logout I am getting the logout message in the console.
<LoginButton publishPermissions={['publish_actions']} onLoginFinished={(error, result) => { if (error) { alert('login has error: ' + result.error); } else if (result.isCancelled) { alert('login is cancelled.'); } else { // This prints out the access token object (includes expiration time and etc...) AccessToken.getCurrentAccessToken().then(accessToken => console.log(accessToken), ); } }} onLogoutFinished={() => console.log('logout.')} />
Hi,
when I click on login the popup lets me log in to facebook and once login I can't get the access token back. But if I click on logout I am getting the logout message in the console.
<LoginButton publishPermissions={['publish_actions']} onLoginFinished={(error, result) => { if (error) { alert('login has error: ' + result.error); } else if (result.isCancelled) { alert('login is cancelled.'); } else { // This prints out the access token object (includes expiration time and etc...) AccessToken.getCurrentAccessToken().then(accessToken => console.log(accessToken), ); } }} onLogoutFinished={() => console.log('logout.')} />