Skip to content

Commit

Permalink
Merge remote-tracking branch 'askmike/patch-1' jaredhanson#168
Browse files Browse the repository at this point in the history
  • Loading branch information
rwky committed Jul 7, 2018
2 parents 02190f1 + 23d1121 commit 3a6c38c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ as a starting point for their own web applications.
##### How do I ask a user for additional permissions?

If you need additional permissions from the user, the permissions can be
requested via the `scope` option to `passport.authenticate()`.
requested via the `scope` option to the Strategy.

```js
app.get('/auth/facebook',
passport.authenticate('facebook', { scope: ['user_friends', 'manage_pages'] }));
passport.use(new FacebookStrategy({
scope: ['user_photos'],
(...)
```
Refer to [permissions with Facebook Login](https://developers.facebook.com/docs/facebook-login/permissions/overview)
Expand Down

0 comments on commit 3a6c38c

Please sign in to comment.