{"action":"created","issue":{"url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/264","labels_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/264/comments","events_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/264/events","html_url":"https://github.com/pythonforfacebook/facebook-sdk/pull/264","id":126305209,"number":264,"title":"Add function for retrieving user permissions","user":{"login":"seawolf42","id":2721922,"avatar_url":"https://avatars.githubusercontent.com/u/2721922?v=3","gravatar_id":"","url":"https://api.github.com/users/seawolf42","html_url":"https://github.com/seawolf42","followers_url":"https://api.github.com/users/seawolf42/followers","following_url":"https://api.github.com/users/seawolf42/following{/other_user}","gists_url":"https://api.github.com/users/seawolf42/gists{/gist_id}","starred_url":"https://api.github.com/users/seawolf42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seawolf42/subscriptions","organizations_url":"https://api.github.com/users/seawolf42/orgs","repos_url":"https://api.github.com/users/seawolf42/repos","events_url":"https://api.github.com/users/seawolf42/events{/privacy}","received_events_url":"https://api.github.com/users/seawolf42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/labels/enhancement","name":"enhancement","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-12T23:44:19Z","updated_at":"2016-01-14T00:41:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/pulls/264","html_url":"https://github.com/pythonforfacebook/facebook-sdk/pull/264","diff_url":"https://github.com/pythonforfacebook/facebook-sdk/pull/264.diff","patch_url":"https://github.com/pythonforfacebook/facebook-sdk/pull/264.patch"},"body":"This adds a function `get_permissions()` that returns the user permissions from the Graph API. To use this you must supply a user token.\r\n\r\nFor testing, set the environment variable `FACEBOOK_USER_ACCESS_TOKEN` to a token retrieved from the [Graph API explorer](https://developers.facebook.com/tools/explorer/145634995501895/)... if this is not set then the test will be skipped."},"comment":{"url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/comments/171485188","html_url":"https://github.com/pythonforfacebook/facebook-sdk/pull/264#issuecomment-171485188","issue_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/264","id":171485188,"user":{"login":"seawolf42","id":2721922,"avatar_url":"https://avatars.githubusercontent.com/u/2721922?v=3","gravatar_id":"","url":"https://api.github.com/users/seawolf42","html_url":"https://github.com/seawolf42","followers_url":"https://api.github.com/users/seawolf42/followers","following_url":"https://api.github.com/users/seawolf42/following{/other_user}","gists_url":"https://api.github.com/users/seawolf42/gists{/gist_id}","starred_url":"https://api.github.com/users/seawolf42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seawolf42/subscriptions","organizations_url":"https://api.github.com/users/seawolf42/orgs","repos_url":"https://api.github.com/users/seawolf42/repos","events_url":"https://api.github.com/users/seawolf42/events{/privacy}","received_events_url":"https://api.github.com/users/seawolf42/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T00:41:17Z","updated_at":"2016-01-14T00:41:17Z","body":"I’ll give that a try. I had taken a stab at that but I thought I received an error. Let me check.\n\n---------- \njeffrey k eliasen - technologist, philosopher, agent of change\nblog <http://jeff.jke.net/> | linkedin <http://www.linkedin.com/pub/jeffrey-eliasen/3/a83/b76> | google+ <http://plus.google.com/+JeffreyEliasen> | facebook <http://facebook.com/jeffrey.eliasen> | twitter <http://twitter.com/jeffreyeliasen>\n> On Jan 13, 2016, at 14:38, Martey Dodoo <notifications@github.com> wrote:\n> \n> That said, I noticed the method only get permissions for the current user (me); it would be better if it allowed using arbitrary user IDs. I am also not sure whether you are willing to write support for deleting specific permissions as well (see my comment on #35 <https://github.com/pythonforfacebook/facebook-sdk/issues/35>), but it would be a great addition.\n> \n> Finally, from https://developers.facebook.com/docs/graph-api/reference/user/permissions <https://developers.facebook.com/docs/graph-api/reference/user/permissions> (emphasis mine):\n> \n> This request must be made with a user access token or an app access token for the current app.\n> \n> I think it should be possible to rewrite your test case so it uses app access tokens instead of a user access token, which should sidestep the issues of Python 2.6 compatibility and having an automated test that never runs automatically.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/pythonforfacebook/facebook-sdk/pull/264#issuecomment-171484764>.\n> \n\n"}}