Created
May 11, 2019 11:12
-
-
Save mak9456/cc3de896c5024c64e88dcc73ee1f692f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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