Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Jun 26, 2012
1 parent d781c14 commit 6c6e6a4
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@ application:
res.redirect('/'); res.redirect('/');
}); });


##### Display Mode

Set `display` in `passport.authenticate()` options to specify display
mode. Refer to the [OAuth dialog
documentation](https://developers.facebook.com/docs/reference/dialogs/oauth/)
for information on its usage.

app.get('/auth/facebook',
passport.authenticate('facebook', { display: 'mobile' }),
function(req, res){
// ...
});

#### Extended Permissions #### Extended Permissions


If you need extended permissions from the user, the permissions can be requested If you need extended permissions from the user, the permissions can be requested
Expand All @@ -84,6 +71,18 @@ checkins:
// extended permissions. // extended permissions.
}); });


##### Display Mode

The display mode with which to render the authorization dialog can be set by
specifying the `display` option. Refer to Facebook's [OAuth Dialog](https://developers.facebook.com/docs/reference/dialogs/oauth/)
documentation for more information.

app.get('/auth/facebook',
passport.authenticate('facebook', { display: 'touch' }),
function(req, res){
// ...
});

## Examples ## Examples


For a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-facebook/tree/master/examples/login). For a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-facebook/tree/master/examples/login).
Expand Down

0 comments on commit 6c6e6a4

Please sign in to comment.