{"action":"opened","number":73,"pull_request":{"url":"https://api.github.com/repos/mweibel/facebook.ex/pulls/73","id":242176553,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTc2NTUz","html_url":"https://github.com/mweibel/facebook.ex/pull/73","diff_url":"https://github.com/mweibel/facebook.ex/pull/73.diff","patch_url":"https://github.com/mweibel/facebook.ex/pull/73.patch","issue_url":"https://api.github.com/repos/mweibel/facebook.ex/issues/73","number":73,"state":"open","locked":false,"title":"Use the exact url in the pagination response","user":{"login":"yuchunc","id":1594682,"node_id":"MDQ6VXNlcjE1OTQ2ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1594682?v=4","gravatar_id":"","url":"https://api.github.com/users/yuchunc","html_url":"https://github.com/yuchunc","followers_url":"https://api.github.com/users/yuchunc/followers","following_url":"https://api.github.com/users/yuchunc/following{/other_user}","gists_url":"https://api.github.com/users/yuchunc/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchunc/subscriptions","organizations_url":"https://api.github.com/users/yuchunc/orgs","repos_url":"https://api.github.com/users/yuchunc/repos","events_url":"https://api.github.com/users/yuchunc/events{/privacy}","received_events_url":"https://api.github.com/users/yuchunc/received_events","type":"User","site_admin":false},"body":"Hi, \r\n\r\nI was playing around with fetching all available data from Facebook using Facebook.Stream.new, and came across this issue. I found it was failing with HTTPoison's `:nxdomain` error, and found `Facebook.Stream` wasing using `Facebook.GraphAPI`, which has  this function:\r\n\r\n```\r\ndef process_url(url), do: Config.graph_url <> url\r\n```\r\n\r\nIt attaches the graph endpoint url for all outgoing calls.\r\nThis wouldn't work for stream since the next page already comes with complete url:\r\n\r\n```\r\nhttps://graph.facebook.com/v3.1/260154614531202/live_videos?access_token=<access_token>&limit=25&after=QVFIUl9Bbnd2aTdSZAUhOWGp6ZA1ZA6aER3dk52ZATBCcGdILXlrUTIxenpQWGpuUFE5NnJDZAWVUYjZA3XzAxT1hZAdmlId1dhb0JTZAERqWWNrTnNqRjdKWGhsOTdR\r\n```\r\n \r\nThis PR opts in to match if url contains protocol, if it does, use the url as is.\r\n\r\nIt fixes the issue for Facebook.Stream","created_at":"2019-01-04T05:12:00Z","updated_at":"2019-01-04T05:12:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mweibel/facebook.ex/pulls/73/commits","review_comments_url":"https://api.github.com/repos/mweibel/facebook.ex/pulls/73/comments","review_comment_url":"https://api.github.com/repos/mweibel/facebook.ex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mweibel/facebook.ex/issues/73/comments","statuses_url":"https://api.github.com/repos/mweibel/facebook.ex/statuses/64cbdb2ba4a1e9969e29cc340d8a0d2e4dcbfdb1","head":{"label":"yuchunc:fix-stream-next-page-url","ref":"fix-stream-next-page-url","sha":"64cbdb2ba4a1e9969e29cc340d8a0d2e4dcbfdb1","user":{"login":"yuchunc","id":1594682,"node_id":"MDQ6VXNlcjE1OTQ2ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1594682?v=4","gravatar_id":"","url":"https://api.github.com/users/yuchunc","html_url":"https://github.com/yuchunc","followers_url":"https://api.github.com/users/yuchunc/followers","following_url":"https://api.github.com/users/yuchunc/following{/other_user}","gists_url":"https://api.github.com/users/yuchunc/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchunc/subscriptions","organizations_url":"https://api.github.com/users/yuchunc/orgs","repos_url":"https://api.github.com/users/yuchunc/repos","events_url":"https://api.github.com/users/yuchunc/events{/privacy}","received_events_url":"https://api.github.com/users/yuchunc/received_events","type":"User","site_admin":false},"repo":{"id":162395308,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIzOTUzMDg=","name":"facebook.ex","full_name":"yuchunc/facebook.ex","private":false,"owner":{"login":"yuchunc","id":1594682,"node_id":"MDQ6VXNlcjE1OTQ2ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1594682?v=4","gravatar_id":"","url":"https://api.github.com/users/yuchunc","html_url":"https://github.com/yuchunc","followers_url":"https://api.github.com/users/yuchunc/followers","following_url":"https://api.github.com/users/yuchunc/following{/other_user}","gists_url":"https://api.github.com/users/yuchunc/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchunc/subscriptions","organizations_url":"https://api.github.com/users/yuchunc/orgs","repos_url":"https://api.github.com/users/yuchunc/repos","events_url":"https://api.github.com/users/yuchunc/events{/privacy}","received_events_url":"https://api.github.com/users/yuchunc/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yuchunc/facebook.ex","description":"Facebook Graph API Wrapper written in Elixir","fork":true,"url":"https://api.github.com/repos/yuchunc/facebook.ex","forks_url":"https://api.github.com/repos/yuchunc/facebook.ex/forks","keys_url":"https://api.github.com/repos/yuchunc/facebook.ex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuchunc/facebook.ex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuchunc/facebook.ex/teams","hooks_url":"https://api.github.com/repos/yuchunc/facebook.ex/hooks","issue_events_url":"https://api.github.com/repos/yuchunc/facebook.ex/issues/events{/number}","events_url":"https://api.github.com/repos/yuchunc/facebook.ex/events","assignees_url":"https://api.github.com/repos/yuchunc/facebook.ex/assignees{/user}","branches_url":"https://api.github.com/repos/yuchunc/facebook.ex/branches{/branch}","tags_url":"https://api.github.com/repos/yuchunc/facebook.ex/tags","blobs_url":"https://api.github.com/repos/yuchunc/facebook.ex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuchunc/facebook.ex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuchunc/facebook.ex/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuchunc/facebook.ex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuchunc/facebook.ex/statuses/{sha}","languages_url":"https://api.github.com/repos/yuchunc/facebook.ex/languages","stargazers_url":"https://api.github.com/repos/yuchunc/facebook.ex/stargazers","contributors_url":"https://api.github.com/repos/yuchunc/facebook.ex/contributors","subscribers_url":"https://api.github.com/repos/yuchunc/facebook.ex/subscribers","subscription_url":"https://api.github.com/repos/yuchunc/facebook.ex/subscription","commits_url":"https://api.github.com/repos/yuchunc/facebook.ex/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuchunc/facebook.ex/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuchunc/facebook.ex/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuchunc/facebook.ex/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuchunc/facebook.ex/contents/{+path}","compare_url":"https://api.github.com/repos/yuchunc/facebook.ex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuchunc/facebook.ex/merges","archive_url":"https://api.github.com/repos/yuchunc/facebook.ex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuchunc/facebook.ex/downloads","issues_url":"https://api.github.com/repos/yuchunc/facebook.ex/issues{/number}","pulls_url":"https://api.github.com/repos/yuchunc/facebook.ex/pulls{/number}","milestones_url":"https://api.github.com/repos/yuchunc/facebook.ex/milestones{/number}","notifications_url":"https://api.github.com/repos/yuchunc/facebook.ex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuchunc/facebook.ex/labels{/name}","releases_url":"https://api.github.com/repos/yuchunc/facebook.ex/releases{/id}","deployments_url":"https://api.github.com/repos/yuchunc/facebook.ex/deployments","created_at":"2018-12-19T06:53:02Z","updated_at":"2018-12-19T06:53:04Z","pushed_at":"2019-01-04T05:10:44Z","git_url":"git://github.com/yuchunc/facebook.ex.git","ssh_url":"git@github.com:yuchunc/facebook.ex.git","clone_url":"https://github.com/yuchunc/facebook.ex.git","svn_url":"https://github.com/yuchunc/facebook.ex","homepage":"http://hexdocs.pm/facebook/","size":420,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mweibel:master","ref":"master","sha":"ff5dd4ba58463c17e55fe67c28ffe488c3493050","user":{"login":"mweibel","id":307427,"node_id":"MDQ6VXNlcjMwNzQyNw==","avatar_url":"https://avatars1.githubusercontent.com/u/307427?v=4","gravatar_id":"","url":"https://api.github.com/users/mweibel","html_url":"https://github.com/mweibel","followers_url":"https://api.github.com/users/mweibel/followers","following_url":"https://api.github.com/users/mweibel/following{/other_user}","gists_url":"https://api.github.com/users/mweibel/gists{/gist_id}","starred_url":"https://api.github.com/users/mweibel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweibel/subscriptions","organizations_url":"https://api.github.com/users/mweibel/orgs","repos_url":"https://api.github.com/users/mweibel/repos","events_url":"https://api.github.com/users/mweibel/events{/privacy}","received_events_url":"https://api.github.com/users/mweibel/received_events","type":"User","site_admin":false},"repo":{"id":16811703,"node_id":"MDEwOlJlcG9zaXRvcnkxNjgxMTcwMw==","name":"facebook.ex","full_name":"mweibel/facebook.ex","private":false,"owner":{"login":"mweibel","id":307427,"node_id":"MDQ6VXNlcjMwNzQyNw==","avatar_url":"https://avatars1.githubusercontent.com/u/307427?v=4","gravatar_id":"","url":"https://api.github.com/users/mweibel","html_url":"https://github.com/mweibel","followers_url":"https://api.github.com/users/mweibel/followers","following_url":"https://api.github.com/users/mweibel/following{/other_user}","gists_url":"https://api.github.com/users/mweibel/gists{/gist_id}","starred_url":"https://api.github.com/users/mweibel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweibel/subscriptions","organizations_url":"https://api.github.com/users/mweibel/orgs","repos_url":"https://api.github.com/users/mweibel/repos","events_url":"https://api.github.com/users/mweibel/events{/privacy}","received_events_url":"https://api.github.com/users/mweibel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mweibel/facebook.ex","description":"Facebook Graph API Wrapper written in Elixir","fork":false,"url":"https://api.github.com/repos/mweibel/facebook.ex","forks_url":"https://api.github.com/repos/mweibel/facebook.ex/forks","keys_url":"https://api.github.com/repos/mweibel/facebook.ex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mweibel/facebook.ex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mweibel/facebook.ex/teams","hooks_url":"https://api.github.com/repos/mweibel/facebook.ex/hooks","issue_events_url":"https://api.github.com/repos/mweibel/facebook.ex/issues/events{/number}","events_url":"https://api.github.com/repos/mweibel/facebook.ex/events","assignees_url":"https://api.github.com/repos/mweibel/facebook.ex/assignees{/user}","branches_url":"https://api.github.com/repos/mweibel/facebook.ex/branches{/branch}","tags_url":"https://api.github.com/repos/mweibel/facebook.ex/tags","blobs_url":"https://api.github.com/repos/mweibel/facebook.ex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mweibel/facebook.ex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mweibel/facebook.ex/git/refs{/sha}","trees_url":"https://api.github.com/repos/mweibel/facebook.ex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mweibel/facebook.ex/statuses/{sha}","languages_url":"https://api.github.com/repos/mweibel/facebook.ex/languages","stargazers_url":"https://api.github.com/repos/mweibel/facebook.ex/stargazers","contributors_url":"https://api.github.com/repos/mweibel/facebook.ex/contributors","subscribers_url":"https://api.github.com/repos/mweibel/facebook.ex/subscribers","subscription_url":"https://api.github.com/repos/mweibel/facebook.ex/subscription","commits_url":"https://api.github.com/repos/mweibel/facebook.ex/commits{/sha}","git_commits_url":"https://api.github.com/repos/mweibel/facebook.ex/git/commits{/sha}","comments_url":"https://api.github.com/repos/mweibel/facebook.ex/comments{/number}","issue_comment_url":"https://api.github.com/repos/mweibel/facebook.ex/issues/comments{/number}","contents_url":"https://api.github.com/repos/mweibel/facebook.ex/contents/{+path}","compare_url":"https://api.github.com/repos/mweibel/facebook.ex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mweibel/facebook.ex/merges","archive_url":"https://api.github.com/repos/mweibel/facebook.ex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mweibel/facebook.ex/downloads","issues_url":"https://api.github.com/repos/mweibel/facebook.ex/issues{/number}","pulls_url":"https://api.github.com/repos/mweibel/facebook.ex/pulls{/number}","milestones_url":"https://api.github.com/repos/mweibel/facebook.ex/milestones{/number}","notifications_url":"https://api.github.com/repos/mweibel/facebook.ex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mweibel/facebook.ex/labels{/name}","releases_url":"https://api.github.com/repos/mweibel/facebook.ex/releases{/id}","deployments_url":"https://api.github.com/repos/mweibel/facebook.ex/deployments","created_at":"2014-02-13T18:00:02Z","updated_at":"2018-12-29T18:35:00Z","pushed_at":"2018-10-26T05:57:30Z","git_url":"git://github.com/mweibel/facebook.ex.git","ssh_url":"git@github.com:mweibel/facebook.ex.git","clone_url":"https://github.com/mweibel/facebook.ex.git","svn_url":"https://github.com/mweibel/facebook.ex","homepage":"http://hexdocs.pm/facebook/","size":420,"stargazers_count":110,"watchers_count":110,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":48,"open_issues":6,"watchers":110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mweibel/facebook.ex/pulls/73"},"html":{"href":"https://github.com/mweibel/facebook.ex/pull/73"},"issue":{"href":"https://api.github.com/repos/mweibel/facebook.ex/issues/73"},"comments":{"href":"https://api.github.com/repos/mweibel/facebook.ex/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/mweibel/facebook.ex/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/mweibel/facebook.ex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mweibel/facebook.ex/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/mweibel/facebook.ex/statuses/64cbdb2ba4a1e9969e29cc340d8a0d2e4dcbfdb1"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":10,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"yuchunc"}}