{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native-fbsdk/issues/145","repository_url":"https://api.github.com/repos/facebook/react-native-fbsdk","labels_url":"https://api.github.com/repos/facebook/react-native-fbsdk/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native-fbsdk/issues/145/comments","events_url":"https://api.github.com/repos/facebook/react-native-fbsdk/issues/145/events","html_url":"https://github.com/facebook/react-native-fbsdk/issues/145","id":153164937,"number":145,"title":"LoginManager doesn't return an access token on successful login?","user":{"login":"gnestor","id":512354,"avatar_url":"https://avatars.githubusercontent.com/u/512354?v=3","gravatar_id":"","url":"https://api.github.com/users/gnestor","html_url":"https://github.com/gnestor","followers_url":"https://api.github.com/users/gnestor/followers","following_url":"https://api.github.com/users/gnestor/following{/other_user}","gists_url":"https://api.github.com/users/gnestor/gists{/gist_id}","starred_url":"https://api.github.com/users/gnestor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnestor/subscriptions","organizations_url":"https://api.github.com/users/gnestor/orgs","repos_url":"https://api.github.com/users/gnestor/repos","events_url":"https://api.github.com/users/gnestor/events{/privacy}","received_events_url":"https://api.github.com/users/gnestor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T04:13:42Z","updated_at":"2016-05-05T04:27:54Z","closed_at":null,"body":"The following\r\n\r\n```js\r\nLoginManager.logInWithReadPermissions(['email','user_friends']).then(result => {\r\n      if (result.isCancelled || result.declinedPermissions.includes('user_friends')) return this.props.playSound('fart-long.caf')\r\n      this.props.handleLogin(result)\r\n    }, error => {\r\n      this.props.playSound('fart-long.caf')\r\n})\r\n```\r\n\r\nreturns \r\n\r\n```js\r\n{\r\n    isCancelled: false,\r\n    grantedPermissions: [ 'email', 'contact_email', 'user_friends', 'public_profile' ],\r\n    declinedPermissions: [] \r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native-fbsdk/issues/comments/217074472","html_url":"https://github.com/facebook/react-native-fbsdk/issues/145#issuecomment-217074472","issue_url":"https://api.github.com/repos/facebook/react-native-fbsdk/issues/145","id":217074472,"user":{"login":"dattran92","id":8003687,"avatar_url":"https://avatars.githubusercontent.com/u/8003687?v=3","gravatar_id":"","url":"https://api.github.com/users/dattran92","html_url":"https://github.com/dattran92","followers_url":"https://api.github.com/users/dattran92/followers","following_url":"https://api.github.com/users/dattran92/following{/other_user}","gists_url":"https://api.github.com/users/dattran92/gists{/gist_id}","starred_url":"https://api.github.com/users/dattran92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dattran92/subscriptions","organizations_url":"https://api.github.com/users/dattran92/orgs","repos_url":"https://api.github.com/users/dattran92/repos","events_url":"https://api.github.com/users/dattran92/events{/privacy}","received_events_url":"https://api.github.com/users/dattran92/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T04:27:54Z","updated_at":"2016-05-05T04:27:54Z","body":"in result callback use should use this:\r\n`AccessToken.getCurrentAccessToken().then(data => {const { accessToken } = data;});`\r\n\r\nmake sure to `import { AccessToken } from 'react-native-fbsdk';`"}}