{"action":"created","comment":{"url":"https://api.github.com/repos/visuallylab/BiiMe/pulls/comments/233382326","pull_request_review_id":174777647,"id":233382326,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzM4MjMyNg==","diff_hunk":"@@ -0,0 +1,113 @@\n+import React from 'react';\n+import { View, Text, StyleSheet, Alert } from 'react-native';\n+import { connect } from 'react-redux';\n+\n+import { connectService, saveServiceData } from '@biime/actions';\n+import TouchableButton from '@biime/components/TouchableButton';\n+import { GraphRequestCallback } from 'react-native-fbsdk';\n+\n+interface UserData {\n+  id: string;\n+  email: string;\n+  picture: object;\n+}\n+interface Props {\n+  serviceName: string;\n+  connectedService: any;\n+  saveServiceData: any;\n+  connectService: (serviceName: string) => void;\n+  connect: () => Promise<void>;\n+  requestUserData: (field: string, callback: GraphRequestCallback) => Promise<void>;\n+}\n+\n+class ConnectServiceRow extends React.Component<Props>{\n+  reqCallback: GraphRequestCallback = (error, result) => {","path":"src/components/ConnectServiceRow.tsx","position":24,"original_position":24,"commit_id":"3d9f00a8c6b2a8c75597595465b9f63ba366a8fc","original_commit_id":"3d9f00a8c6b2a8c75597595465b9f63ba366a8fc","user":{"login":"chihsuan","id":4344253,"node_id":"MDQ6VXNlcjQzNDQyNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/4344253?v=4","gravatar_id":"","url":"https://api.github.com/users/chihsuan","html_url":"https://github.com/chihsuan","followers_url":"https://api.github.com/users/chihsuan/followers","following_url":"https://api.github.com/users/chihsuan/following{/other_user}","gists_url":"https://api.github.com/users/chihsuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chihsuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihsuan/subscriptions","organizations_url":"https://api.github.com/users/chihsuan/orgs","repos_url":"https://api.github.com/users/chihsuan/repos","events_url":"https://api.github.com/users/chihsuan/events{/privacy}","received_events_url":"https://api.github.com/users/chihsuan/received_events","type":"User","site_admin":false},"body":"It would be better to add a type for the `result`. It could just be the service data we retrieved below.","created_at":"2018-11-14T10:03:58Z","updated_at":"2018-11-14T10:15:56Z","html_url":"https://github.com/visuallylab/BiiMe/pull/11#discussion_r233382326","pull_request_url":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/visuallylab/BiiMe/pulls/comments/233382326"},"html":{"href":"https://github.com/visuallylab/BiiMe/pull/11#discussion_r233382326"},"pull_request":{"href":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11","id":229279631,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5Mjc5NjMx","html_url":"https://github.com/visuallylab/BiiMe/pull/11","diff_url":"https://github.com/visuallylab/BiiMe/pull/11.diff","patch_url":"https://github.com/visuallylab/BiiMe/pull/11.patch","issue_url":"https://api.github.com/repos/visuallylab/BiiMe/issues/11","number":11,"state":"open","locked":false,"title":"Feature/connect facebook service","user":{"login":"ching56","id":11289334,"node_id":"MDQ6VXNlcjExMjg5MzM0","avatar_url":"https://avatars2.githubusercontent.com/u/11289334?v=4","gravatar_id":"","url":"https://api.github.com/users/ching56","html_url":"https://github.com/ching56","followers_url":"https://api.github.com/users/ching56/followers","following_url":"https://api.github.com/users/ching56/following{/other_user}","gists_url":"https://api.github.com/users/ching56/gists{/gist_id}","starred_url":"https://api.github.com/users/ching56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ching56/subscriptions","organizations_url":"https://api.github.com/users/ching56/orgs","repos_url":"https://api.github.com/users/ching56/repos","events_url":"https://api.github.com/users/ching56/events{/privacy}","received_events_url":"https://api.github.com/users/ching56/received_events","type":"User","site_admin":false},"body":"As updated Readme, please install fbsdk on ios by the following:\r\n```\r\n$ sudo gem install cocoapods\r\n$ cd ios && pod install\r\n```","created_at":"2018-11-08T08:06:38Z","updated_at":"2018-11-14T10:15:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0b7604aa5d28c1bd526c18a7e9d6524645060b8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11/commits","review_comments_url":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11/comments","review_comment_url":"https://api.github.com/repos/visuallylab/BiiMe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/visuallylab/BiiMe/issues/11/comments","statuses_url":"https://api.github.com/repos/visuallylab/BiiMe/statuses/3d9f00a8c6b2a8c75597595465b9f63ba366a8fc","head":{"label":"visuallylab:feature/connect-service","ref":"feature/connect-service","sha":"3d9f00a8c6b2a8c75597595465b9f63ba366a8fc","user":{"login":"visuallylab","id":43545559,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNTQ1NTU5","avatar_url":"https://avatars3.githubusercontent.com/u/43545559?v=4","gravatar_id":"","url":"https://api.github.com/users/visuallylab","html_url":"https://github.com/visuallylab","followers_url":"https://api.github.com/users/visuallylab/followers","following_url":"https://api.github.com/users/visuallylab/following{/other_user}","gists_url":"https://api.github.com/users/visuallylab/gists{/gist_id}","starred_url":"https://api.github.com/users/visuallylab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visuallylab/subscriptions","organizations_url":"https://api.github.com/users/visuallylab/orgs","repos_url":"https://api.github.com/users/visuallylab/repos","events_url":"https://api.github.com/users/visuallylab/events{/privacy}","received_events_url":"https://api.github.com/users/visuallylab/received_events","type":"Organization","site_admin":false},"repo":{"id":153393484,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzOTM0ODQ=","name":"BiiMe","full_name":"visuallylab/BiiMe","private":false,"owner":{"login":"visuallylab","id":43545559,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNTQ1NTU5","avatar_url":"https://avatars3.githubusercontent.com/u/43545559?v=4","gravatar_id":"","url":"https://api.github.com/users/visuallylab","html_url":"https://github.com/visuallylab","followers_url":"https://api.github.com/users/visuallylab/followers","following_url":"https://api.github.com/users/visuallylab/following{/other_user}","gists_url":"https://api.github.com/users/visuallylab/gists{/gist_id}","starred_url":"https://api.github.com/users/visuallylab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visuallylab/subscriptions","organizations_url":"https://api.github.com/users/visuallylab/orgs","repos_url":"https://api.github.com/users/visuallylab/repos","events_url":"https://api.github.com/users/visuallylab/events{/privacy}","received_events_url":"https://api.github.com/users/visuallylab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/visuallylab/BiiMe","description":"BiiMe Mobile application","fork":false,"url":"https://api.github.com/repos/visuallylab/BiiMe","forks_url":"https://api.github.com/repos/visuallylab/BiiMe/forks","keys_url":"https://api.github.com/repos/visuallylab/BiiMe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/visuallylab/BiiMe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/visuallylab/BiiMe/teams","hooks_url":"https://api.github.com/repos/visuallylab/BiiMe/hooks","issue_events_url":"https://api.github.com/repos/visuallylab/BiiMe/issues/events{/number}","events_url":"https://api.github.com/repos/visuallylab/BiiMe/events","assignees_url":"https://api.github.com/repos/visuallylab/BiiMe/assignees{/user}","branches_url":"https://api.github.com/repos/visuallylab/BiiMe/branches{/branch}","tags_url":"https://api.github.com/repos/visuallylab/BiiMe/tags","blobs_url":"https://api.github.com/repos/visuallylab/BiiMe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/visuallylab/BiiMe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/visuallylab/BiiMe/git/refs{/sha}","trees_url":"https://api.github.com/repos/visuallylab/BiiMe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/visuallylab/BiiMe/statuses/{sha}","languages_url":"https://api.github.com/repos/visuallylab/BiiMe/languages","stargazers_url":"https://api.github.com/repos/visuallylab/BiiMe/stargazers","contributors_url":"https://api.github.com/repos/visuallylab/BiiMe/contributors","subscribers_url":"https://api.github.com/repos/visuallylab/BiiMe/subscribers","subscription_url":"https://api.github.com/repos/visuallylab/BiiMe/subscription","commits_url":"https://api.github.com/repos/visuallylab/BiiMe/commits{/sha}","git_commits_url":"https://api.github.com/repos/visuallylab/BiiMe/git/commits{/sha}","comments_url":"https://api.github.com/repos/visuallylab/BiiMe/comments{/number}","issue_comment_url":"https://api.github.com/repos/visuallylab/BiiMe/issues/comments{/number}","contents_url":"https://api.github.com/repos/visuallylab/BiiMe/contents/{+path}","compare_url":"https://api.github.com/repos/visuallylab/BiiMe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/visuallylab/BiiMe/merges","archive_url":"https://api.github.com/repos/visuallylab/BiiMe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/visuallylab/BiiMe/downloads","issues_url":"https://api.github.com/repos/visuallylab/BiiMe/issues{/number}","pulls_url":"https://api.github.com/repos/visuallylab/BiiMe/pulls{/number}","milestones_url":"https://api.github.com/repos/visuallylab/BiiMe/milestones{/number}","notifications_url":"https://api.github.com/repos/visuallylab/BiiMe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/visuallylab/BiiMe/labels{/name}","releases_url":"https://api.github.com/repos/visuallylab/BiiMe/releases{/id}","deployments_url":"https://api.github.com/repos/visuallylab/BiiMe/deployments","created_at":"2018-10-17T04:02:09Z","updated_at":"2018-11-14T07:42:43Z","pushed_at":"2018-11-14T09:44:17Z","git_url":"git://github.com/visuallylab/BiiMe.git","ssh_url":"git@github.com:visuallylab/BiiMe.git","clone_url":"https://github.com/visuallylab/BiiMe.git","svn_url":"https://github.com/visuallylab/BiiMe","homepage":"","size":1316,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"visuallylab:master","ref":"master","sha":"acc2223b3381c87f8c1262e439692c56c1a28a02","user":{"login":"visuallylab","id":43545559,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNTQ1NTU5","avatar_url":"https://avatars3.githubusercontent.com/u/43545559?v=4","gravatar_id":"","url":"https://api.github.com/users/visuallylab","html_url":"https://github.com/visuallylab","followers_url":"https://api.github.com/users/visuallylab/followers","following_url":"https://api.github.com/users/visuallylab/following{/other_user}","gists_url":"https://api.github.com/users/visuallylab/gists{/gist_id}","starred_url":"https://api.github.com/users/visuallylab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visuallylab/subscriptions","organizations_url":"https://api.github.com/users/visuallylab/orgs","repos_url":"https://api.github.com/users/visuallylab/repos","events_url":"https://api.github.com/users/visuallylab/events{/privacy}","received_events_url":"https://api.github.com/users/visuallylab/received_events","type":"Organization","site_admin":false},"repo":{"id":153393484,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMzOTM0ODQ=","name":"BiiMe","full_name":"visuallylab/BiiMe","private":false,"owner":{"login":"visuallylab","id":43545559,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNTQ1NTU5","avatar_url":"https://avatars3.githubusercontent.com/u/43545559?v=4","gravatar_id":"","url":"https://api.github.com/users/visuallylab","html_url":"https://github.com/visuallylab","followers_url":"https://api.github.com/users/visuallylab/followers","following_url":"https://api.github.com/users/visuallylab/following{/other_user}","gists_url":"https://api.github.com/users/visuallylab/gists{/gist_id}","starred_url":"https://api.github.com/users/visuallylab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visuallylab/subscriptions","organizations_url":"https://api.github.com/users/visuallylab/orgs","repos_url":"https://api.github.com/users/visuallylab/repos","events_url":"https://api.github.com/users/visuallylab/events{/privacy}","received_events_url":"https://api.github.com/users/visuallylab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/visuallylab/BiiMe","description":"BiiMe Mobile application","fork":false,"url":"https://api.github.com/repos/visuallylab/BiiMe","forks_url":"https://api.github.com/repos/visuallylab/BiiMe/forks","keys_url":"https://api.github.com/repos/visuallylab/BiiMe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/visuallylab/BiiMe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/visuallylab/BiiMe/teams","hooks_url":"https://api.github.com/repos/visuallylab/BiiMe/hooks","issue_events_url":"https://api.github.com/repos/visuallylab/BiiMe/issues/events{/number}","events_url":"https://api.github.com/repos/visuallylab/BiiMe/events","assignees_url":"https://api.github.com/repos/visuallylab/BiiMe/assignees{/user}","branches_url":"https://api.github.com/repos/visuallylab/BiiMe/branches{/branch}","tags_url":"https://api.github.com/repos/visuallylab/BiiMe/tags","blobs_url":"https://api.github.com/repos/visuallylab/BiiMe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/visuallylab/BiiMe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/visuallylab/BiiMe/git/refs{/sha}","trees_url":"https://api.github.com/repos/visuallylab/BiiMe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/visuallylab/BiiMe/statuses/{sha}","languages_url":"https://api.github.com/repos/visuallylab/BiiMe/languages","stargazers_url":"https://api.github.com/repos/visuallylab/BiiMe/stargazers","contributors_url":"https://api.github.com/repos/visuallylab/BiiMe/contributors","subscribers_url":"https://api.github.com/repos/visuallylab/BiiMe/subscribers","subscription_url":"https://api.github.com/repos/visuallylab/BiiMe/subscription","commits_url":"https://api.github.com/repos/visuallylab/BiiMe/commits{/sha}","git_commits_url":"https://api.github.com/repos/visuallylab/BiiMe/git/commits{/sha}","comments_url":"https://api.github.com/repos/visuallylab/BiiMe/comments{/number}","issue_comment_url":"https://api.github.com/repos/visuallylab/BiiMe/issues/comments{/number}","contents_url":"https://api.github.com/repos/visuallylab/BiiMe/contents/{+path}","compare_url":"https://api.github.com/repos/visuallylab/BiiMe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/visuallylab/BiiMe/merges","archive_url":"https://api.github.com/repos/visuallylab/BiiMe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/visuallylab/BiiMe/downloads","issues_url":"https://api.github.com/repos/visuallylab/BiiMe/issues{/number}","pulls_url":"https://api.github.com/repos/visuallylab/BiiMe/pulls{/number}","milestones_url":"https://api.github.com/repos/visuallylab/BiiMe/milestones{/number}","notifications_url":"https://api.github.com/repos/visuallylab/BiiMe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/visuallylab/BiiMe/labels{/name}","releases_url":"https://api.github.com/repos/visuallylab/BiiMe/releases{/id}","deployments_url":"https://api.github.com/repos/visuallylab/BiiMe/deployments","created_at":"2018-10-17T04:02:09Z","updated_at":"2018-11-14T07:42:43Z","pushed_at":"2018-11-14T09:44:17Z","git_url":"git://github.com/visuallylab/BiiMe.git","ssh_url":"git@github.com:visuallylab/BiiMe.git","clone_url":"https://github.com/visuallylab/BiiMe.git","svn_url":"https://github.com/visuallylab/BiiMe","homepage":"","size":1316,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11"},"html":{"href":"https://github.com/visuallylab/BiiMe/pull/11"},"issue":{"href":"https://api.github.com/repos/visuallylab/BiiMe/issues/11"},"comments":{"href":"https://api.github.com/repos/visuallylab/BiiMe/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/visuallylab/BiiMe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/visuallylab/BiiMe/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/visuallylab/BiiMe/statuses/3d9f00a8c6b2a8c75597595465b9f63ba366a8fc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"chihsuan"}}