{"action":"created","issue":{"url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit/issues/36","repository_url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit","labels_url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit/issues/36/comments","events_url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit/issues/36/events","html_url":"https://github.com/underscopeio/react-native-facebook-account-kit/issues/36","id":173633276,"number":36,"title":".getCurrentAccount() show error","user":{"login":"creativefull","id":13174684,"avatar_url":"https://avatars.githubusercontent.com/u/13174684?v=3","gravatar_id":"","url":"https://api.github.com/users/creativefull","html_url":"https://github.com/creativefull","followers_url":"https://api.github.com/users/creativefull/followers","following_url":"https://api.github.com/users/creativefull/following{/other_user}","gists_url":"https://api.github.com/users/creativefull/gists{/gist_id}","starred_url":"https://api.github.com/users/creativefull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativefull/subscriptions","organizations_url":"https://api.github.com/users/creativefull/orgs","repos_url":"https://api.github.com/users/creativefull/repos","events_url":"https://api.github.com/users/creativefull/events{/privacy}","received_events_url":"https://api.github.com/users/creativefull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-08-28T07:05:33Z","updated_at":"2016-09-19T16:32:39Z","closed_at":null,"body":"hi, i'm trying like a tutorial but i got error like this\r\n\r\n```\r\nPossible Unhandled Promise Rejection (id: 0):\r\nServer generated an error\r\nError: Server generated an error\r\n    at createErrorFromErrorData (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7452:11)\r\n    at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7403:11\r\n    at MessageQueue.__invokeCallback (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7266:10)\r\n    at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7138:8\r\n    at guard (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7076:1)\r\n    at MessageQueue.invokeCallbackAndReturnFlushedQueue (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7137:1)\r\n    at DedicatedWorkerGlobalScope.onmessage (http://localhost:8081/debuggerWorker.js:39:56)\r\n```\r\n\r\nmy code\r\n\r\n```\r\n\tcomponentWillMount() {\r\n\t\tAccountKit.configure({\r\n\t\t\tdefaultCountry : 'ID'\r\n\t\t});\r\n\t\tAccountKit.getCurrentAccessToken().then(\r\n\t\t\t(token) => {\r\n\t\t\t\tif (!token) {\r\n\t\t\t\t\tAppRegistry.runApplication('login', {\r\n\t\t\t\t\t\tinitialProps : {},\r\n\t\t\t\t\t\trootTag : 1\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tAccountKit.getCurrentAccount().then(\r\n\t\t\t\t\t\t(account) => {\r\n\t\t\t\t\t\t\tconsole.log(\"Current Account \", account);\r\n\t\t\t\t\t\t}).catch(function(error) {\r\n\t\t\t\t\t\t\tconsole.log('There has been a problem with your fetch operation: ' + error.message);\r\n\t\t\t\t\t\t\t// ADD THIS THROW error\r\n\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t}).catch((error) => {\r\n\t\t\tconsole.log(error.message);\r\n\t\t\tthrow error;\r\n\t\t});\r\n\t}\r\n```\r\n\r\nis there anything I missed in the code section?\r\nplease help me :("},"comment":{"url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit/issues/comments/248044856","html_url":"https://github.com/underscopeio/react-native-facebook-account-kit/issues/36#issuecomment-248044856","issue_url":"https://api.github.com/repos/underscopeio/react-native-facebook-account-kit/issues/36","id":248044856,"user":{"login":"gaguirre","id":1652196,"avatar_url":"https://avatars.githubusercontent.com/u/1652196?v=3","gravatar_id":"","url":"https://api.github.com/users/gaguirre","html_url":"https://github.com/gaguirre","followers_url":"https://api.github.com/users/gaguirre/followers","following_url":"https://api.github.com/users/gaguirre/following{/other_user}","gists_url":"https://api.github.com/users/gaguirre/gists{/gist_id}","starred_url":"https://api.github.com/users/gaguirre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaguirre/subscriptions","organizations_url":"https://api.github.com/users/gaguirre/orgs","repos_url":"https://api.github.com/users/gaguirre/repos","events_url":"https://api.github.com/users/gaguirre/events{/privacy}","received_events_url":"https://api.github.com/users/gaguirre/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T16:32:38Z","updated_at":"2016-09-19T16:32:38Z","body":"I just published a new release (**0.5.0**) compatible with **React Native 0.33**.\r\nWould you try it and see if it fixes the error?\r\n\r\nNotice that, from now on, there are two separated examples for **RN 0.24** and **RN 0.33**."}}
{"actor":{"display_login":"gaguirre"}}