From 36d8370dc70304dbef23e757d65e8c75b71410d4 Mon Sep 17 00:00:00 2001 From: Eugene Obrezkov Date: Wed, 30 Sep 2015 14:30:24 +0300 Subject: [PATCH] Profile fields by default --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3bf3420..e024dcf 100644 --- a/src/index.js +++ b/src/index.js @@ -52,7 +52,7 @@ export default class FacebookTokenStrategy extends OAuth2Strategy { this._profileURL = options.profileURL || 'https://graph.facebook.com/v2.4/me'; this._clientSecret = options.clientSecret; this._enableProof = options.enableProof; - this._profileFields = options.profileFields || null; + this._profileFields = options.profileFields || ['id', 'username', 'name', 'emails']; this._oauth2._useAuthorizationHeaderForGET = false; }