{"action":"created","issue":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/979","labels_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/979/labels{/name}","comments_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/979/comments","events_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/979/events","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/979","id":68411000,"number":979,"title":"auth_type: 'rerequest' support","user":{"login":"robotvert","id":514215,"avatar_url":"https://avatars.githubusercontent.com/u/514215?v=3","gravatar_id":"","url":"https://api.github.com/users/robotvert","html_url":"https://github.com/robotvert","followers_url":"https://api.github.com/users/robotvert/followers","following_url":"https://api.github.com/users/robotvert/following{/other_user}","gists_url":"https://api.github.com/users/robotvert/gists{/gist_id}","starred_url":"https://api.github.com/users/robotvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotvert/subscriptions","organizations_url":"https://api.github.com/users/robotvert/orgs","repos_url":"https://api.github.com/users/robotvert/repos","events_url":"https://api.github.com/users/robotvert/events{/privacy}","received_events_url":"https://api.github.com/users/robotvert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-14T15:24:54Z","updated_at":"2015-04-14T16:40:15Z","closed_at":"2015-04-14T16:33:37Z","pull_request":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/pulls/979","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/979","diff_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/979.diff","patch_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/979.patch"},"body":"Addresses issues #837 and #642 \r\n\r\nadd 'rerequest' to the permissions array to re-ask for declined permissions, for instance:\r\n\r\n```javascript\r\n// first call\r\nfacebookConnectPlugin.login(['email'], ....)\r\n\r\n// after the user declined the email permission, to retry:\r\nfacebookConnectPlugin.login(['email', 'rerequest'], ....)\r\n```\r\n\r\nsee [the facebook docs](https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.3#re-asking-declined-permissions) for the proper way to use this great power which of course comes with great responsibility.\r\n\r\nnot too happy about the mixing of permissions and auth_type but it keeps the whole thing simple and backward compatible this way."},"comment":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/comments/92967820","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/pull/979#issuecomment-92967820","issue_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/979","id":92967820,"user":{"login":"robotvert","id":514215,"avatar_url":"https://avatars.githubusercontent.com/u/514215?v=3","gravatar_id":"","url":"https://api.github.com/users/robotvert","html_url":"https://github.com/robotvert","followers_url":"https://api.github.com/users/robotvert/followers","following_url":"https://api.github.com/users/robotvert/following{/other_user}","gists_url":"https://api.github.com/users/robotvert/gists{/gist_id}","starred_url":"https://api.github.com/users/robotvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotvert/subscriptions","organizations_url":"https://api.github.com/users/robotvert/orgs","repos_url":"https://api.github.com/users/robotvert/repos","events_url":"https://api.github.com/users/robotvert/events{/privacy}","received_events_url":"https://api.github.com/users/robotvert/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T16:40:15Z","updated_at":"2015-04-14T16:40:15Z","body":"Note that you might want to update the README to mention this when it's in master.\r\nTotally skipped that part, sorry :bow: "}}