{"action":"opened","issue":{"url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/51","labels_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/51/comments","events_url":"https://api.github.com/repos/ParsePlatform/ParseUI-Android/issues/51/events","html_url":"https://github.com/ParsePlatform/ParseUI-Android/issues/51","id":98731946,"number":51,"title":"Inconsistency in permissions","user":{"login":"Ricardo1980","id":738681,"avatar_url":"https://avatars.githubusercontent.com/u/738681?v=3","gravatar_id":"","url":"https://api.github.com/users/Ricardo1980","html_url":"https://github.com/Ricardo1980","followers_url":"https://api.github.com/users/Ricardo1980/followers","following_url":"https://api.github.com/users/Ricardo1980/following{/other_user}","gists_url":"https://api.github.com/users/Ricardo1980/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricardo1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricardo1980/subscriptions","organizations_url":"https://api.github.com/users/Ricardo1980/orgs","repos_url":"https://api.github.com/users/Ricardo1980/repos","events_url":"https://api.github.com/users/Ricardo1980/events{/privacy}","received_events_url":"https://api.github.com/users/Ricardo1980/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T12:16:28Z","updated_at":"2015-08-03T12:16:28Z","closed_at":null,"body":"My app uses 2 permissions, public_profile and email.\r\n\r\nI set up them using:\r\n<string-array name=\"my_facebook_permissions\" translatable=\"false\">\r\n        <item>public_profile</item>\r\n        <item>email</item>\r\n    </string-array>\r\n\r\nand \r\n\r\n<meta-data\r\n                android:name=\"com.parse.ui.ParseLoginActivity.FACEBOOK_LOGIN_PERMISSIONS\"\r\n                android:resource=\"@array/my_facebook_permissions\" />\r\n\r\nI see the native and web dialog properly, asking the user these 2 permissions. I also see in the debugger that those 2 permissions are passed properly to facebook.\r\n\r\nThis is what I see in the debugger inside FacebookAuthentificationProvider, authenticateAsync, accessToken (it seems right)\r\n\r\n![captura de pantalla 2015-08-03 a las 13 28 01](https://cloud.githubusercontent.com/assets/738681/9037091/ec060726-39e7-11e5-983e-b2cea54ef040.png)\r\n\r\n\r\nBut if I continue with the debugging... once in my app, after the login, in onActivityResult, if I call \r\nAccessToken accessToken=AccessToken.getCurrentAccessToken();\r\n\r\nI see that that access token doesn't hace granted ermissions or rejected permissions, but if I use GraphRequest I can get the user email with  String emailFromFacebook = object.optString(\"email\"); without problems.\r\n\r\n![captura de pantalla 2015-08-03 a las 13 14 49](https://cloud.githubusercontent.com/assets/738681/9037149/8c3f64b2-39e8-11e5-8a93-db6caae567d8.png)\r\n\r\nIt doesn't make any sense that those permission variables have different values in those places. \r\n\r\nBYT I'm using ParseUI and facebook sdk version 4.0.1\r\n\r\nApart from that, if I reject the email permission in the login dialog, I see inside FacebookAuthentificationProvider that has been rejected by the user:\r\n\r\n![captura de pantalla 2015-08-03 a las 13 45 01](https://cloud.githubusercontent.com/assets/738681/9037209/4471ed2a-39e9-11e5-8f43-0f19be01e00f.png)\r\n\r\nHowever, in my app code, in onActivityResult, I see exactly the same than the other case... just nothing, no granted or declined permissions, so accessToken.getDeclinedPermissions().contains(\"email\") is completely useless and when I try to get the user email like before, I receive null (probably because the app doesn't have permission).\r\n\r\n![captura de pantalla 2015-08-03 a las 14 13 08](https://cloud.githubusercontent.com/assets/738681/9037286/03e818b4-39ea-11e5-8fc5-6687cbdce659.png)\r\n\r\n\r\nI guess this behavior is not normal. BTW I'm supposing that accesstoken.permissions contains granted permissions and accesToken.declinedPermissions contains declined permissions, is that right?\r\n\r\nThanks in advance.\r\n\r\n\r\n\r\n\r\n"}}