Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.

  • Loading branch information...
commit 6c6e6a43f9b098751516f873bafad8ed3afa66b0 1 parent d781c14
@jaredhanson authored
Showing with 12 additions and 13 deletions.
  1. +12 −13 README.md
View
25 README.md
@@ -56,19 +56,6 @@ application:
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
If you need extended permissions from the user, the permissions can be requested
@@ -84,6 +71,18 @@ checkins:
// 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
For a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-facebook/tree/master/examples/login).
Please sign in to comment.
Something went wrong with that request. Please try again.