-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFacebookStrategy.js
More file actions
31 lines (28 loc) · 665 Bytes
/
Copy pathFacebookStrategy.js
File metadata and controls
31 lines (28 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
const OAuthStrategy = require('./OAuthStrategy');
const Strategy = require('passport-facebook').Strategy;
class FacebookStrategy extends OAuthStrategy {
constructor(yggdrasil) {
super(
yggdrasil,
'Facebook',
Strategy,
['email', 'public_profile'],
{
profileFields: [
'id',
'name',
'email',
//'first_name', // already included in 'public_profile' scope
//'last_name', // same
'languages',
'location',
'short_name',
'permissions',
'picture'
]
}
);
}
}
module.exports = FacebookStrategy;