{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/pedrogimenez/fbk/pulls/9","id":67592811,"html_url":"https://github.com/pedrogimenez/fbk/pull/9","diff_url":"https://github.com/pedrogimenez/fbk/pull/9.diff","patch_url":"https://github.com/pedrogimenez/fbk/pull/9.patch","issue_url":"https://api.github.com/repos/pedrogimenez/fbk/issues/9","number":9,"state":"open","locked":false,"title":"Don't fail when the user doesn't have friends","user":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"body":"This handles the case in which a user doesn't have any friends or when\nthe user doesn't grant the required permission.","created_at":"2016-04-23T02:03:14Z","updated_at":"2016-04-23T02:03:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pedrogimenez/fbk/pulls/9/commits","review_comments_url":"https://api.github.com/repos/pedrogimenez/fbk/pulls/9/comments","review_comment_url":"https://api.github.com/repos/pedrogimenez/fbk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pedrogimenez/fbk/issues/9/comments","statuses_url":"https://api.github.com/repos/pedrogimenez/fbk/statuses/fbe43cebf6454717f332b75b8dd3c44c451e0844","head":{"label":"pedrogimenez:handle-error-case","ref":"handle-error-case","sha":"fbe43cebf6454717f332b75b8dd3c44c451e0844","user":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"repo":{"id":29024781,"name":"fbk","full_name":"pedrogimenez/fbk","owner":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedrogimenez/fbk","description":"Just a bunch of methods that may come in handy when interacting with the Facebook Graph API","fork":false,"url":"https://api.github.com/repos/pedrogimenez/fbk","forks_url":"https://api.github.com/repos/pedrogimenez/fbk/forks","keys_url":"https://api.github.com/repos/pedrogimenez/fbk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedrogimenez/fbk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedrogimenez/fbk/teams","hooks_url":"https://api.github.com/repos/pedrogimenez/fbk/hooks","issue_events_url":"https://api.github.com/repos/pedrogimenez/fbk/issues/events{/number}","events_url":"https://api.github.com/repos/pedrogimenez/fbk/events","assignees_url":"https://api.github.com/repos/pedrogimenez/fbk/assignees{/user}","branches_url":"https://api.github.com/repos/pedrogimenez/fbk/branches{/branch}","tags_url":"https://api.github.com/repos/pedrogimenez/fbk/tags","blobs_url":"https://api.github.com/repos/pedrogimenez/fbk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedrogimenez/fbk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedrogimenez/fbk/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedrogimenez/fbk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedrogimenez/fbk/statuses/{sha}","languages_url":"https://api.github.com/repos/pedrogimenez/fbk/languages","stargazers_url":"https://api.github.com/repos/pedrogimenez/fbk/stargazers","contributors_url":"https://api.github.com/repos/pedrogimenez/fbk/contributors","subscribers_url":"https://api.github.com/repos/pedrogimenez/fbk/subscribers","subscription_url":"https://api.github.com/repos/pedrogimenez/fbk/subscription","commits_url":"https://api.github.com/repos/pedrogimenez/fbk/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedrogimenez/fbk/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedrogimenez/fbk/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedrogimenez/fbk/issues/comments{/number}","contents_url":"https://api.github.com/repos/pedrogimenez/fbk/contents/{+path}","compare_url":"https://api.github.com/repos/pedrogimenez/fbk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedrogimenez/fbk/merges","archive_url":"https://api.github.com/repos/pedrogimenez/fbk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedrogimenez/fbk/downloads","issues_url":"https://api.github.com/repos/pedrogimenez/fbk/issues{/number}","pulls_url":"https://api.github.com/repos/pedrogimenez/fbk/pulls{/number}","milestones_url":"https://api.github.com/repos/pedrogimenez/fbk/milestones{/number}","notifications_url":"https://api.github.com/repos/pedrogimenez/fbk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedrogimenez/fbk/labels{/name}","releases_url":"https://api.github.com/repos/pedrogimenez/fbk/releases{/id}","deployments_url":"https://api.github.com/repos/pedrogimenez/fbk/deployments","created_at":"2015-01-09T16:31:31Z","updated_at":"2016-02-24T22:42:05Z","pushed_at":"2016-04-23T02:03:12Z","git_url":"git://github.com/pedrogimenez/fbk.git","ssh_url":"git@github.com:pedrogimenez/fbk.git","clone_url":"https://github.com/pedrogimenez/fbk.git","svn_url":"https://github.com/pedrogimenez/fbk","homepage":"https://github.com/pedrogimenez/fbk","size":10,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"pedrogimenez:master","ref":"master","sha":"c389f3a725918982bf40f1810aaa144d8045c8ff","user":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"repo":{"id":29024781,"name":"fbk","full_name":"pedrogimenez/fbk","owner":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedrogimenez/fbk","description":"Just a bunch of methods that may come in handy when interacting with the Facebook Graph API","fork":false,"url":"https://api.github.com/repos/pedrogimenez/fbk","forks_url":"https://api.github.com/repos/pedrogimenez/fbk/forks","keys_url":"https://api.github.com/repos/pedrogimenez/fbk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedrogimenez/fbk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedrogimenez/fbk/teams","hooks_url":"https://api.github.com/repos/pedrogimenez/fbk/hooks","issue_events_url":"https://api.github.com/repos/pedrogimenez/fbk/issues/events{/number}","events_url":"https://api.github.com/repos/pedrogimenez/fbk/events","assignees_url":"https://api.github.com/repos/pedrogimenez/fbk/assignees{/user}","branches_url":"https://api.github.com/repos/pedrogimenez/fbk/branches{/branch}","tags_url":"https://api.github.com/repos/pedrogimenez/fbk/tags","blobs_url":"https://api.github.com/repos/pedrogimenez/fbk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedrogimenez/fbk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedrogimenez/fbk/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedrogimenez/fbk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedrogimenez/fbk/statuses/{sha}","languages_url":"https://api.github.com/repos/pedrogimenez/fbk/languages","stargazers_url":"https://api.github.com/repos/pedrogimenez/fbk/stargazers","contributors_url":"https://api.github.com/repos/pedrogimenez/fbk/contributors","subscribers_url":"https://api.github.com/repos/pedrogimenez/fbk/subscribers","subscription_url":"https://api.github.com/repos/pedrogimenez/fbk/subscription","commits_url":"https://api.github.com/repos/pedrogimenez/fbk/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedrogimenez/fbk/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedrogimenez/fbk/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedrogimenez/fbk/issues/comments{/number}","contents_url":"https://api.github.com/repos/pedrogimenez/fbk/contents/{+path}","compare_url":"https://api.github.com/repos/pedrogimenez/fbk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedrogimenez/fbk/merges","archive_url":"https://api.github.com/repos/pedrogimenez/fbk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedrogimenez/fbk/downloads","issues_url":"https://api.github.com/repos/pedrogimenez/fbk/issues{/number}","pulls_url":"https://api.github.com/repos/pedrogimenez/fbk/pulls{/number}","milestones_url":"https://api.github.com/repos/pedrogimenez/fbk/milestones{/number}","notifications_url":"https://api.github.com/repos/pedrogimenez/fbk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedrogimenez/fbk/labels{/name}","releases_url":"https://api.github.com/repos/pedrogimenez/fbk/releases{/id}","deployments_url":"https://api.github.com/repos/pedrogimenez/fbk/deployments","created_at":"2015-01-09T16:31:31Z","updated_at":"2016-02-24T22:42:05Z","pushed_at":"2016-04-23T02:03:12Z","git_url":"git://github.com/pedrogimenez/fbk.git","ssh_url":"git@github.com:pedrogimenez/fbk.git","clone_url":"https://github.com/pedrogimenez/fbk.git","svn_url":"https://github.com/pedrogimenez/fbk","homepage":"https://github.com/pedrogimenez/fbk","size":10,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pedrogimenez/fbk/pulls/9"},"html":{"href":"https://github.com/pedrogimenez/fbk/pull/9"},"issue":{"href":"https://api.github.com/repos/pedrogimenez/fbk/issues/9"},"comments":{"href":"https://api.github.com/repos/pedrogimenez/fbk/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/pedrogimenez/fbk/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/pedrogimenez/fbk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pedrogimenez/fbk/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/pedrogimenez/fbk/statuses/fbe43cebf6454717f332b75b8dd3c44c451e0844"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}