{"action":"created","comment":{"url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/comments/53769885","id":53769885,"diff_hunk":"@@ -0,0 +1,74 @@\n+var facebookLoginService = angular.module('facebookLoginService', []);\n+\n+facebookLoginService.factory('facebookLogin', facebookLogin);\n+\n+function facebookLogin($http, $q, $state) {\n+    var service = {};\n+    service.fbLoginSuccess = function(response) {\n+        var def = $q.defer();\n+        if (!response.authResponse) {\n+            fbLoginError(\"Cannot find the authResponse\");\n+            return;\n+        }\n+        var authResponse = response.authResponse;\n+        service.getFacebookProfileInfo(authResponse)\n+            .then(function(profileInfo) {\n+                console.log(profileInfo);\n+                Session.set('FB_social_id', profileInfo.id);\n+                Session.set('FB_accessToken', authResponse.accessToken);\n+                profileInfo.accessToken = authResponse.accessToken;\n+                def.resolve(profileInfo);\n+            }, function(fail) {\n+                console.log('profile info fail', fail);\n+                def.reject(fail);\n+            });\n+        return def.promise;\n+    };\n+    service.fbLoginError = function(error) {\n+        console.log('fbLoginError', error);","path":"client/common/facebook_login.service.js","position":28,"original_position":28,"commit_id":"14ec50f65154ea6b4f1467aa065100f151f307b0","original_commit_id":"14ec50f65154ea6b4f1467aa065100f151f307b0","user":{"login":"rahulexcel","id":15088401,"avatar_url":"https://avatars.githubusercontent.com/u/15088401?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulexcel","html_url":"https://github.com/rahulexcel","followers_url":"https://api.github.com/users/rahulexcel/followers","following_url":"https://api.github.com/users/rahulexcel/following{/other_user}","gists_url":"https://api.github.com/users/rahulexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulexcel/subscriptions","organizations_url":"https://api.github.com/users/rahulexcel/orgs","repos_url":"https://api.github.com/users/rahulexcel/repos","events_url":"https://api.github.com/users/rahulexcel/events{/privacy}","received_events_url":"https://api.github.com/users/rahulexcel/received_events","type":"User","site_admin":false},"body":"in case of error, we just do console log? there no update in frontend?","created_at":"2016-02-23T11:50:56Z","updated_at":"2016-02-23T11:50:56Z","html_url":"https://github.com/deepakexcel/closeness_app/pull/2#discussion_r53769885","pull_request_url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/comments/53769885"},"html":{"href":"https://github.com/deepakexcel/closeness_app/pull/2#discussion_r53769885"},"pull_request":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2","id":60325307,"html_url":"https://github.com/deepakexcel/closeness_app/pull/2","diff_url":"https://github.com/deepakexcel/closeness_app/pull/2.diff","patch_url":"https://github.com/deepakexcel/closeness_app/pull/2.patch","issue_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues/2","number":2,"state":"open","locked":false,"title":"After login branch","user":{"login":"rahulexcel","id":15088401,"avatar_url":"https://avatars.githubusercontent.com/u/15088401?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulexcel","html_url":"https://github.com/rahulexcel","followers_url":"https://api.github.com/users/rahulexcel/followers","following_url":"https://api.github.com/users/rahulexcel/following{/other_user}","gists_url":"https://api.github.com/users/rahulexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulexcel/subscriptions","organizations_url":"https://api.github.com/users/rahulexcel/orgs","repos_url":"https://api.github.com/users/rahulexcel/repos","events_url":"https://api.github.com/users/rahulexcel/events{/privacy}","received_events_url":"https://api.github.com/users/rahulexcel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-23T11:28:24Z","updated_at":"2016-02-23T11:50:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af6a1ca01d9592c170816262087d17d67742cb6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2/commits","review_comments_url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2/comments","review_comment_url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues/2/comments","statuses_url":"https://api.github.com/repos/deepakexcel/closeness_app/statuses/14ec50f65154ea6b4f1467aa065100f151f307b0","head":{"label":"deepakexcel:after_login_branch","ref":"after_login_branch","sha":"14ec50f65154ea6b4f1467aa065100f151f307b0","user":{"login":"deepakexcel","id":14344186,"avatar_url":"https://avatars.githubusercontent.com/u/14344186?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakexcel","html_url":"https://github.com/deepakexcel","followers_url":"https://api.github.com/users/deepakexcel/followers","following_url":"https://api.github.com/users/deepakexcel/following{/other_user}","gists_url":"https://api.github.com/users/deepakexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakexcel/subscriptions","organizations_url":"https://api.github.com/users/deepakexcel/orgs","repos_url":"https://api.github.com/users/deepakexcel/repos","events_url":"https://api.github.com/users/deepakexcel/events{/privacy}","received_events_url":"https://api.github.com/users/deepakexcel/received_events","type":"User","site_admin":false},"repo":{"id":52067779,"name":"closeness_app","full_name":"deepakexcel/closeness_app","owner":{"login":"deepakexcel","id":14344186,"avatar_url":"https://avatars.githubusercontent.com/u/14344186?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakexcel","html_url":"https://github.com/deepakexcel","followers_url":"https://api.github.com/users/deepakexcel/followers","following_url":"https://api.github.com/users/deepakexcel/following{/other_user}","gists_url":"https://api.github.com/users/deepakexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakexcel/subscriptions","organizations_url":"https://api.github.com/users/deepakexcel/orgs","repos_url":"https://api.github.com/users/deepakexcel/repos","events_url":"https://api.github.com/users/deepakexcel/events{/privacy}","received_events_url":"https://api.github.com/users/deepakexcel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deepakexcel/closeness_app","description":"","fork":false,"url":"https://api.github.com/repos/deepakexcel/closeness_app","forks_url":"https://api.github.com/repos/deepakexcel/closeness_app/forks","keys_url":"https://api.github.com/repos/deepakexcel/closeness_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deepakexcel/closeness_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deepakexcel/closeness_app/teams","hooks_url":"https://api.github.com/repos/deepakexcel/closeness_app/hooks","issue_events_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues/events{/number}","events_url":"https://api.github.com/repos/deepakexcel/closeness_app/events","assignees_url":"https://api.github.com/repos/deepakexcel/closeness_app/assignees{/user}","branches_url":"https://api.github.com/repos/deepakexcel/closeness_app/branches{/branch}","tags_url":"https://api.github.com/repos/deepakexcel/closeness_app/tags","blobs_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deepakexcel/closeness_app/statuses/{sha}","languages_url":"https://api.github.com/repos/deepakexcel/closeness_app/languages","stargazers_url":"https://api.github.com/repos/deepakexcel/closeness_app/stargazers","contributors_url":"https://api.github.com/repos/deepakexcel/closeness_app/contributors","subscribers_url":"https://api.github.com/repos/deepakexcel/closeness_app/subscribers","subscription_url":"https://api.github.com/repos/deepakexcel/closeness_app/subscription","commits_url":"https://api.github.com/repos/deepakexcel/closeness_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/deepakexcel/closeness_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/deepakexcel/closeness_app/contents/{+path}","compare_url":"https://api.github.com/repos/deepakexcel/closeness_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deepakexcel/closeness_app/merges","archive_url":"https://api.github.com/repos/deepakexcel/closeness_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deepakexcel/closeness_app/downloads","issues_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues{/number}","pulls_url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls{/number}","milestones_url":"https://api.github.com/repos/deepakexcel/closeness_app/milestones{/number}","notifications_url":"https://api.github.com/repos/deepakexcel/closeness_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deepakexcel/closeness_app/labels{/name}","releases_url":"https://api.github.com/repos/deepakexcel/closeness_app/releases{/id}","deployments_url":"https://api.github.com/repos/deepakexcel/closeness_app/deployments","created_at":"2016-02-19T06:51:47Z","updated_at":"2016-02-19T07:38:45Z","pushed_at":"2016-02-23T11:28:24Z","git_url":"git://github.com/deepakexcel/closeness_app.git","ssh_url":"git@github.com:deepakexcel/closeness_app.git","clone_url":"https://github.com/deepakexcel/closeness_app.git","svn_url":"https://github.com/deepakexcel/closeness_app","homepage":null,"size":117,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"deepakexcel:master","ref":"master","sha":"f15430dcfc349b4dab43db2df0c4cac3471b1a20","user":{"login":"deepakexcel","id":14344186,"avatar_url":"https://avatars.githubusercontent.com/u/14344186?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakexcel","html_url":"https://github.com/deepakexcel","followers_url":"https://api.github.com/users/deepakexcel/followers","following_url":"https://api.github.com/users/deepakexcel/following{/other_user}","gists_url":"https://api.github.com/users/deepakexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakexcel/subscriptions","organizations_url":"https://api.github.com/users/deepakexcel/orgs","repos_url":"https://api.github.com/users/deepakexcel/repos","events_url":"https://api.github.com/users/deepakexcel/events{/privacy}","received_events_url":"https://api.github.com/users/deepakexcel/received_events","type":"User","site_admin":false},"repo":{"id":52067779,"name":"closeness_app","full_name":"deepakexcel/closeness_app","owner":{"login":"deepakexcel","id":14344186,"avatar_url":"https://avatars.githubusercontent.com/u/14344186?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakexcel","html_url":"https://github.com/deepakexcel","followers_url":"https://api.github.com/users/deepakexcel/followers","following_url":"https://api.github.com/users/deepakexcel/following{/other_user}","gists_url":"https://api.github.com/users/deepakexcel/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakexcel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakexcel/subscriptions","organizations_url":"https://api.github.com/users/deepakexcel/orgs","repos_url":"https://api.github.com/users/deepakexcel/repos","events_url":"https://api.github.com/users/deepakexcel/events{/privacy}","received_events_url":"https://api.github.com/users/deepakexcel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deepakexcel/closeness_app","description":"","fork":false,"url":"https://api.github.com/repos/deepakexcel/closeness_app","forks_url":"https://api.github.com/repos/deepakexcel/closeness_app/forks","keys_url":"https://api.github.com/repos/deepakexcel/closeness_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deepakexcel/closeness_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deepakexcel/closeness_app/teams","hooks_url":"https://api.github.com/repos/deepakexcel/closeness_app/hooks","issue_events_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues/events{/number}","events_url":"https://api.github.com/repos/deepakexcel/closeness_app/events","assignees_url":"https://api.github.com/repos/deepakexcel/closeness_app/assignees{/user}","branches_url":"https://api.github.com/repos/deepakexcel/closeness_app/branches{/branch}","tags_url":"https://api.github.com/repos/deepakexcel/closeness_app/tags","blobs_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deepakexcel/closeness_app/statuses/{sha}","languages_url":"https://api.github.com/repos/deepakexcel/closeness_app/languages","stargazers_url":"https://api.github.com/repos/deepakexcel/closeness_app/stargazers","contributors_url":"https://api.github.com/repos/deepakexcel/closeness_app/contributors","subscribers_url":"https://api.github.com/repos/deepakexcel/closeness_app/subscribers","subscription_url":"https://api.github.com/repos/deepakexcel/closeness_app/subscription","commits_url":"https://api.github.com/repos/deepakexcel/closeness_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/deepakexcel/closeness_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/deepakexcel/closeness_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/deepakexcel/closeness_app/contents/{+path}","compare_url":"https://api.github.com/repos/deepakexcel/closeness_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deepakexcel/closeness_app/merges","archive_url":"https://api.github.com/repos/deepakexcel/closeness_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deepakexcel/closeness_app/downloads","issues_url":"https://api.github.com/repos/deepakexcel/closeness_app/issues{/number}","pulls_url":"https://api.github.com/repos/deepakexcel/closeness_app/pulls{/number}","milestones_url":"https://api.github.com/repos/deepakexcel/closeness_app/milestones{/number}","notifications_url":"https://api.github.com/repos/deepakexcel/closeness_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deepakexcel/closeness_app/labels{/name}","releases_url":"https://api.github.com/repos/deepakexcel/closeness_app/releases{/id}","deployments_url":"https://api.github.com/repos/deepakexcel/closeness_app/deployments","created_at":"2016-02-19T06:51:47Z","updated_at":"2016-02-19T07:38:45Z","pushed_at":"2016-02-23T11:28:24Z","git_url":"git://github.com/deepakexcel/closeness_app.git","ssh_url":"git@github.com:deepakexcel/closeness_app.git","clone_url":"https://github.com/deepakexcel/closeness_app.git","svn_url":"https://github.com/deepakexcel/closeness_app","homepage":null,"size":117,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2"},"html":{"href":"https://github.com/deepakexcel/closeness_app/pull/2"},"issue":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/issues/2"},"comments":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/deepakexcel/closeness_app/statuses/14ec50f65154ea6b4f1467aa065100f151f307b0"}}}}