{"action":"created","issue":{"url":"https://api.github.com/repos/mobolic/facebook-sdk/issues/288","repository_url":"https://api.github.com/repos/mobolic/facebook-sdk","labels_url":"https://api.github.com/repos/mobolic/facebook-sdk/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/mobolic/facebook-sdk/issues/288/comments","events_url":"https://api.github.com/repos/mobolic/facebook-sdk/issues/288/events","html_url":"https://github.com/mobolic/facebook-sdk/pull/288","id":157824155,"number":288,"title":"Current docs don't show how to get an access token","user":{"login":"k-funk","id":1933021,"avatar_url":"https://avatars.githubusercontent.com/u/1933021?v=3","gravatar_id":"","url":"https://api.github.com/users/k-funk","html_url":"https://github.com/k-funk","followers_url":"https://api.github.com/users/k-funk/followers","following_url":"https://api.github.com/users/k-funk/following{/other_user}","gists_url":"https://api.github.com/users/k-funk/gists{/gist_id}","starred_url":"https://api.github.com/users/k-funk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-funk/subscriptions","organizations_url":"https://api.github.com/users/k-funk/orgs","repos_url":"https://api.github.com/users/k-funk/repos","events_url":"https://api.github.com/users/k-funk/events{/privacy}","received_events_url":"https://api.github.com/users/k-funk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mobolic/facebook-sdk/labels/documentation","name":"documentation","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-01T05:06:01Z","updated_at":"2016-06-02T04:34:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mobolic/facebook-sdk/pulls/288","html_url":"https://github.com/mobolic/facebook-sdk/pull/288","diff_url":"https://github.com/mobolic/facebook-sdk/pull/288.diff","patch_url":"https://github.com/mobolic/facebook-sdk/pull/288.patch"},"body":"I had to pull this from the unit tests to figure out how to get and use access token cleanly. The current example is not enough, and fumbling through the docs/code first made me think that this was the only way to go about it, which is gross/wrong:\r\n\r\n```\r\n    graph = facebook.GraphAPI(\r\n        facebook.GraphAPI().get_app_access_token(\r\n            'your_app_id', 'your_app_secret'\r\n        ),\r\n        version='2.2'\r\n    )\r\n```\r\n\r\nPlease either merge this or update the docs so that someone can get a working example from just this first example."},"comment":{"url":"https://api.github.com/repos/mobolic/facebook-sdk/issues/comments/223193182","html_url":"https://github.com/mobolic/facebook-sdk/pull/288#issuecomment-223193182","issue_url":"https://api.github.com/repos/mobolic/facebook-sdk/issues/288","id":223193182,"user":{"login":"k-funk","id":1933021,"avatar_url":"https://avatars.githubusercontent.com/u/1933021?v=3","gravatar_id":"","url":"https://api.github.com/users/k-funk","html_url":"https://github.com/k-funk","followers_url":"https://api.github.com/users/k-funk/followers","following_url":"https://api.github.com/users/k-funk/following{/other_user}","gists_url":"https://api.github.com/users/k-funk/gists{/gist_id}","starred_url":"https://api.github.com/users/k-funk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-funk/subscriptions","organizations_url":"https://api.github.com/users/k-funk/orgs","repos_url":"https://api.github.com/users/k-funk/repos","events_url":"https://api.github.com/users/k-funk/events{/privacy}","received_events_url":"https://api.github.com/users/k-funk/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T04:34:16Z","updated_at":"2016-06-02T04:34:16Z","body":"What is the general workflow for getting a user access token? I think that if that's the normal use case, an example should go here, even if it's just a couple lines of comments laying out the process very simply.\r\n\r\nI'll try to get around to the tutorial.rst this weekend."}}
{"actor":{"display_login":"k-funk"}}