Merge pull request #86 from ParsePlatform/fosco.fb

Updated Facebook login method
This commit is contained in:
Fosco Marotto
2016-01-30 15:51:50 -08:00
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