Last active
May 11, 2019 11:54
-
-
Save mak9456/ddc493d79b1968d268dc567279d3680a 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
getUserInfo(userId) { | |
console.log("UserId" + userId); | |
let self = this; | |
FB.api( | |
"/" + userId + '?fields=name,accounts,email', | |
(result) => { | |
if (result && !result.error) { | |
self.userName = result.name; | |
self.userEmail = result.email; | |
self.pageaccountDetails = result.accounts.data | |
} | |
else { | |
this.isValidCredentials = false; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment