Skip to content

Instantly share code, notes, and snippets.

@mak9456
Created May 11, 2019 11:12
Show Gist options
  • Save mak9456/cc3de896c5024c64e88dcc73ee1f692f to your computer and use it in GitHub Desktop.
Save mak9456/cc3de896c5024c64e88dcc73ee1f692f to your computer and use it in GitHub Desktop.
oauthLogin(socialProvider: string) {
FB.login((loginResponse) => {
localStorage.setItem(AppSettings.Authcookie, loginResponse.authResponse.accessToken);
this.showAuthUser = true;
this.getUserInfo(loginResponse.authResponse.userID);
this.isValidCredentials = true;
}, { scope: "public_profile,email,manage_pages,pages_messaging,pages_messaging_phone_number" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment