Updated Facebook login method

This commit is contained in:
Fosco Marotto
2016-01-30 15:20:44 -08:00
parent 774de7b4c6
commit f05fb7d9fd
5 changed files with 19 additions and 4 deletions

View File

@@ -219,7 +219,7 @@ RestWrite.prototype.handleFacebookAuthData = function() {
return facebook.validateUserId(facebookData.id,
facebookData.access_token)
.then(() => {
return facebook.validateAppId(process.env.FACEBOOK_APP_ID,
return facebook.validateAppId(this.config.facebookAppIds,
facebookData.access_token);
}).then(() => {
// Check if this user already exists