{"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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T23:44:19Z","updated_at":"2016-01-13T02:26:51Z","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/171136711","html_url":"https://github.com/pythonforfacebook/facebook-sdk/pull/264#issuecomment-171136711","issue_url":"https://api.github.com/repos/pythonforfacebook/facebook-sdk/issues/264","id":171136711,"user":{"login":"martey","id":49076,"avatar_url":"https://avatars.githubusercontent.com/u/49076?v=3","gravatar_id":"","url":"https://api.github.com/users/martey","html_url":"https://github.com/martey","followers_url":"https://api.github.com/users/martey/followers","following_url":"https://api.github.com/users/martey/following{/other_user}","gists_url":"https://api.github.com/users/martey/gists{/gist_id}","starred_url":"https://api.github.com/users/martey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martey/subscriptions","organizations_url":"https://api.github.com/users/martey/orgs","repos_url":"https://api.github.com/users/martey/repos","events_url":"https://api.github.com/users/martey/events{/privacy}","received_events_url":"https://api.github.com/users/martey/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T02:26:51Z","updated_at":"2016-01-13T02:26:51Z","body":"The environment variables are set automatically from the `.travis.yml` file. RIght now, your pull request is causing the build to fail because it doesn't pass the flake8 linting:\r\n````\r\nfacebook/__init__.py:107:19: E201 whitespace after '{'\r\nfacebook/__init__.py:107:65: E901 SyntaxError: invalid syntax\r\nfacebook/__init__.py:107:79: E202 whitespace before '}'\r\nfacebook/__init__.py:107:80: E501 line too long (80 > 79 characters)\r\n\r\ntest/test_facebook.py:220:1: W293 blank line contains whitespace\r\ntest/test_facebook.py:224:1: W293 blank line contains whitespace\r\ntest/test_facebook.py:227:1: W293 blank line contains whitespace\r\ntest/test_facebook.py:235:1: W293 blank line contains whitespace\r\n"}}