{"action":"created","comment":{"url":"https://api.github.com/repos/RohanNagar/lightning/pulls/comments/39925461","id":39925461,"diff_hunk":"@@ -1,22 +1,48 @@\n package com.sanction.lightning.facebook;\n \n+import com.google.common.collect.Lists;\n+\n import com.restfb.DefaultFacebookClient;\n+import com.restfb.FacebookClient.AccessToken;\n import com.restfb.Parameter;\n import com.restfb.Version;\n+import com.restfb.json.JsonArray;\n+import com.restfb.json.JsonObject;\n+import com.restfb.scope.ScopeBuilder;\n+import com.restfb.scope.UserDataPermissions;\n+\n import com.sanction.lightning.models.FacebookUser;\n \n+import java.util.List;\n+\n public class FacebookProvider {\n \n+  private static final String REDIRECT_LINK = \"example.com\";\n   private final DefaultFacebookClient client;\n+  private final String appId;\n+  private final String appSecret;\n \n   /**\n    * Constructs a new FacebookProvider for making requests to Facebook.\n    * @param facebookAccessToken The access token for the user.\n    * @param facebookAppSecret The authenticating application secret.\n    */\n-  public FacebookProvider(String facebookAccessToken, String facebookAppSecret) {\n+  public FacebookProvider(String facebookAccessToken, String facebookApplicationId,\n+                          String facebookAppSecret) {\n     this.client = new DefaultFacebookClient(facebookAccessToken, facebookAppSecret,\n         Version.VERSION_2_4);\n+    this.appId = facebookApplicationId;\n+    this.appSecret = facebookAppSecret;\n+  }\n+\n+  /**\n+   * Constructs a new FacebookProvider for making requests to Facebook.\n+   * @param facebookAppSecret The authenticating application secret.\n+   */\n+  public FacebookProvider(String facebookApplicationId, String facebookAppSecret) {","path":"application/src/main/java/com/sanction/lightning/facebook/FacebookProvider.java","position":43,"original_position":43,"commit_id":"648d34ee2d0d578d331967c499ad1f82b68c4338","original_commit_id":"648d34ee2d0d578d331967c499ad1f82b68c4338","user":{"login":"RohanNagar","id":5522930,"avatar_url":"https://avatars.githubusercontent.com/u/5522930?v=3","gravatar_id":"","url":"https://api.github.com/users/RohanNagar","html_url":"https://github.com/RohanNagar","followers_url":"https://api.github.com/users/RohanNagar/followers","following_url":"https://api.github.com/users/RohanNagar/following{/other_user}","gists_url":"https://api.github.com/users/RohanNagar/gists{/gist_id}","starred_url":"https://api.github.com/users/RohanNagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RohanNagar/subscriptions","organizations_url":"https://api.github.com/users/RohanNagar/orgs","repos_url":"https://api.github.com/users/RohanNagar/repos","events_url":"https://api.github.com/users/RohanNagar/events{/privacy}","received_events_url":"https://api.github.com/users/RohanNagar/received_events","type":"User","site_admin":false},"body":"Same here on name of variable for `facebookApplicationSecret`","created_at":"2015-09-20T00:23:38Z","updated_at":"2015-09-20T00:23:38Z","html_url":"https://github.com/RohanNagar/lightning/pull/5#discussion_r39925461","pull_request_url":"https://api.github.com/repos/RohanNagar/lightning/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/RohanNagar/lightning/pulls/comments/39925461"},"html":{"href":"https://github.com/RohanNagar/lightning/pull/5#discussion_r39925461"},"pull_request":{"href":"https://api.github.com/repos/RohanNagar/lightning/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/RohanNagar/lightning/pulls/5","id":45487086,"html_url":"https://github.com/RohanNagar/lightning/pull/5","diff_url":"https://github.com/RohanNagar/lightning/pull/5.diff","patch_url":"https://github.com/RohanNagar/lightning/pull/5.patch","issue_url":"https://api.github.com/repos/RohanNagar/lightning/issues/5","number":5,"state":"open","locked":false,"title":"Facebook changes","user":{"login":"NickEckert","id":8596671,"avatar_url":"https://avatars.githubusercontent.com/u/8596671?v=3","gravatar_id":"","url":"https://api.github.com/users/NickEckert","html_url":"https://github.com/NickEckert","followers_url":"https://api.github.com/users/NickEckert/followers","following_url":"https://api.github.com/users/NickEckert/following{/other_user}","gists_url":"https://api.github.com/users/NickEckert/gists{/gist_id}","starred_url":"https://api.github.com/users/NickEckert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickEckert/subscriptions","organizations_url":"https://api.github.com/users/NickEckert/orgs","repos_url":"https://api.github.com/users/NickEckert/repos","events_url":"https://api.github.com/users/NickEckert/events{/privacy}","received_events_url":"https://api.github.com/users/NickEckert/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-20T00:21:09Z","updated_at":"2015-09-20T00:23:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aae1be548b2b4f17944e5ece2f51b1657e949aa6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RohanNagar/lightning/pulls/5/commits","review_comments_url":"https://api.github.com/repos/RohanNagar/lightning/pulls/5/comments","review_comment_url":"https://api.github.com/repos/RohanNagar/lightning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RohanNagar/lightning/issues/5/comments","statuses_url":"https://api.github.com/repos/RohanNagar/lightning/statuses/648d34ee2d0d578d331967c499ad1f82b68c4338","head":{"label":"NickEckert:facebook","ref":"facebook","sha":"648d34ee2d0d578d331967c499ad1f82b68c4338","user":{"login":"NickEckert","id":8596671,"avatar_url":"https://avatars.githubusercontent.com/u/8596671?v=3","gravatar_id":"","url":"https://api.github.com/users/NickEckert","html_url":"https://github.com/NickEckert","followers_url":"https://api.github.com/users/NickEckert/followers","following_url":"https://api.github.com/users/NickEckert/following{/other_user}","gists_url":"https://api.github.com/users/NickEckert/gists{/gist_id}","starred_url":"https://api.github.com/users/NickEckert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickEckert/subscriptions","organizations_url":"https://api.github.com/users/NickEckert/orgs","repos_url":"https://api.github.com/users/NickEckert/repos","events_url":"https://api.github.com/users/NickEckert/events{/privacy}","received_events_url":"https://api.github.com/users/NickEckert/received_events","type":"User","site_admin":false},"repo":{"id":42207217,"name":"lightning","full_name":"NickEckert/lightning","owner":{"login":"NickEckert","id":8596671,"avatar_url":"https://avatars.githubusercontent.com/u/8596671?v=3","gravatar_id":"","url":"https://api.github.com/users/NickEckert","html_url":"https://github.com/NickEckert","followers_url":"https://api.github.com/users/NickEckert/followers","following_url":"https://api.github.com/users/NickEckert/following{/other_user}","gists_url":"https://api.github.com/users/NickEckert/gists{/gist_id}","starred_url":"https://api.github.com/users/NickEckert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickEckert/subscriptions","organizations_url":"https://api.github.com/users/NickEckert/orgs","repos_url":"https://api.github.com/users/NickEckert/repos","events_url":"https://api.github.com/users/NickEckert/events{/privacy}","received_events_url":"https://api.github.com/users/NickEckert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NickEckert/lightning","description":"","fork":true,"url":"https://api.github.com/repos/NickEckert/lightning","forks_url":"https://api.github.com/repos/NickEckert/lightning/forks","keys_url":"https://api.github.com/repos/NickEckert/lightning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NickEckert/lightning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NickEckert/lightning/teams","hooks_url":"https://api.github.com/repos/NickEckert/lightning/hooks","issue_events_url":"https://api.github.com/repos/NickEckert/lightning/issues/events{/number}","events_url":"https://api.github.com/repos/NickEckert/lightning/events","assignees_url":"https://api.github.com/repos/NickEckert/lightning/assignees{/user}","branches_url":"https://api.github.com/repos/NickEckert/lightning/branches{/branch}","tags_url":"https://api.github.com/repos/NickEckert/lightning/tags","blobs_url":"https://api.github.com/repos/NickEckert/lightning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NickEckert/lightning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NickEckert/lightning/git/refs{/sha}","trees_url":"https://api.github.com/repos/NickEckert/lightning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NickEckert/lightning/statuses/{sha}","languages_url":"https://api.github.com/repos/NickEckert/lightning/languages","stargazers_url":"https://api.github.com/repos/NickEckert/lightning/stargazers","contributors_url":"https://api.github.com/repos/NickEckert/lightning/contributors","subscribers_url":"https://api.github.com/repos/NickEckert/lightning/subscribers","subscription_url":"https://api.github.com/repos/NickEckert/lightning/subscription","commits_url":"https://api.github.com/repos/NickEckert/lightning/commits{/sha}","git_commits_url":"https://api.github.com/repos/NickEckert/lightning/git/commits{/sha}","comments_url":"https://api.github.com/repos/NickEckert/lightning/comments{/number}","issue_comment_url":"https://api.github.com/repos/NickEckert/lightning/issues/comments{/number}","contents_url":"https://api.github.com/repos/NickEckert/lightning/contents/{+path}","compare_url":"https://api.github.com/repos/NickEckert/lightning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NickEckert/lightning/merges","archive_url":"https://api.github.com/repos/NickEckert/lightning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NickEckert/lightning/downloads","issues_url":"https://api.github.com/repos/NickEckert/lightning/issues{/number}","pulls_url":"https://api.github.com/repos/NickEckert/lightning/pulls{/number}","milestones_url":"https://api.github.com/repos/NickEckert/lightning/milestones{/number}","notifications_url":"https://api.github.com/repos/NickEckert/lightning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NickEckert/lightning/labels{/name}","releases_url":"https://api.github.com/repos/NickEckert/lightning/releases{/id}","created_at":"2015-09-09T22:02:00Z","updated_at":"2015-09-09T22:02:00Z","pushed_at":"2015-09-20T00:20:29Z","git_url":"git://github.com/NickEckert/lightning.git","ssh_url":"git@github.com:NickEckert/lightning.git","clone_url":"https://github.com/NickEckert/lightning.git","svn_url":"https://github.com/NickEckert/lightning","homepage":null,"size":131,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RohanNagar:master","ref":"master","sha":"8b7d0ab485b037d80bff7ad695c774374c7fa726","user":{"login":"RohanNagar","id":5522930,"avatar_url":"https://avatars.githubusercontent.com/u/5522930?v=3","gravatar_id":"","url":"https://api.github.com/users/RohanNagar","html_url":"https://github.com/RohanNagar","followers_url":"https://api.github.com/users/RohanNagar/followers","following_url":"https://api.github.com/users/RohanNagar/following{/other_user}","gists_url":"https://api.github.com/users/RohanNagar/gists{/gist_id}","starred_url":"https://api.github.com/users/RohanNagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RohanNagar/subscriptions","organizations_url":"https://api.github.com/users/RohanNagar/orgs","repos_url":"https://api.github.com/users/RohanNagar/repos","events_url":"https://api.github.com/users/RohanNagar/events{/privacy}","received_events_url":"https://api.github.com/users/RohanNagar/received_events","type":"User","site_admin":false},"repo":{"id":39867463,"name":"lightning","full_name":"RohanNagar/lightning","owner":{"login":"RohanNagar","id":5522930,"avatar_url":"https://avatars.githubusercontent.com/u/5522930?v=3","gravatar_id":"","url":"https://api.github.com/users/RohanNagar","html_url":"https://github.com/RohanNagar","followers_url":"https://api.github.com/users/RohanNagar/followers","following_url":"https://api.github.com/users/RohanNagar/following{/other_user}","gists_url":"https://api.github.com/users/RohanNagar/gists{/gist_id}","starred_url":"https://api.github.com/users/RohanNagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RohanNagar/subscriptions","organizations_url":"https://api.github.com/users/RohanNagar/orgs","repos_url":"https://api.github.com/users/RohanNagar/repos","events_url":"https://api.github.com/users/RohanNagar/events{/privacy}","received_events_url":"https://api.github.com/users/RohanNagar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RohanNagar/lightning","description":"","fork":false,"url":"https://api.github.com/repos/RohanNagar/lightning","forks_url":"https://api.github.com/repos/RohanNagar/lightning/forks","keys_url":"https://api.github.com/repos/RohanNagar/lightning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RohanNagar/lightning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RohanNagar/lightning/teams","hooks_url":"https://api.github.com/repos/RohanNagar/lightning/hooks","issue_events_url":"https://api.github.com/repos/RohanNagar/lightning/issues/events{/number}","events_url":"https://api.github.com/repos/RohanNagar/lightning/events","assignees_url":"https://api.github.com/repos/RohanNagar/lightning/assignees{/user}","branches_url":"https://api.github.com/repos/RohanNagar/lightning/branches{/branch}","tags_url":"https://api.github.com/repos/RohanNagar/lightning/tags","blobs_url":"https://api.github.com/repos/RohanNagar/lightning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RohanNagar/lightning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RohanNagar/lightning/git/refs{/sha}","trees_url":"https://api.github.com/repos/RohanNagar/lightning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RohanNagar/lightning/statuses/{sha}","languages_url":"https://api.github.com/repos/RohanNagar/lightning/languages","stargazers_url":"https://api.github.com/repos/RohanNagar/lightning/stargazers","contributors_url":"https://api.github.com/repos/RohanNagar/lightning/contributors","subscribers_url":"https://api.github.com/repos/RohanNagar/lightning/subscribers","subscription_url":"https://api.github.com/repos/RohanNagar/lightning/subscription","commits_url":"https://api.github.com/repos/RohanNagar/lightning/commits{/sha}","git_commits_url":"https://api.github.com/repos/RohanNagar/lightning/git/commits{/sha}","comments_url":"https://api.github.com/repos/RohanNagar/lightning/comments{/number}","issue_comment_url":"https://api.github.com/repos/RohanNagar/lightning/issues/comments{/number}","contents_url":"https://api.github.com/repos/RohanNagar/lightning/contents/{+path}","compare_url":"https://api.github.com/repos/RohanNagar/lightning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RohanNagar/lightning/merges","archive_url":"https://api.github.com/repos/RohanNagar/lightning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RohanNagar/lightning/downloads","issues_url":"https://api.github.com/repos/RohanNagar/lightning/issues{/number}","pulls_url":"https://api.github.com/repos/RohanNagar/lightning/pulls{/number}","milestones_url":"https://api.github.com/repos/RohanNagar/lightning/milestones{/number}","notifications_url":"https://api.github.com/repos/RohanNagar/lightning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RohanNagar/lightning/labels{/name}","releases_url":"https://api.github.com/repos/RohanNagar/lightning/releases{/id}","created_at":"2015-07-29T01:55:52Z","updated_at":"2015-07-29T02:44:26Z","pushed_at":"2015-09-20T00:21:10Z","git_url":"git://github.com/RohanNagar/lightning.git","ssh_url":"git@github.com:RohanNagar/lightning.git","clone_url":"https://github.com/RohanNagar/lightning.git","svn_url":"https://github.com/RohanNagar/lightning","homepage":null,"size":284,"stargazers_count":0,"watchers_count":0,"language":"Java","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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RohanNagar/lightning/pulls/5"},"html":{"href":"https://github.com/RohanNagar/lightning/pull/5"},"issue":{"href":"https://api.github.com/repos/RohanNagar/lightning/issues/5"},"comments":{"href":"https://api.github.com/repos/RohanNagar/lightning/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/RohanNagar/lightning/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/RohanNagar/lightning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RohanNagar/lightning/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/RohanNagar/lightning/statuses/648d34ee2d0d578d331967c499ad1f82b68c4338"}}}}