Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Facebook passport Oauth authenticate strategy

app.get('/auth/facebook',
  passport.authenticate('facebook'));

app.get('/auth/facebook/callback',
  passport.authenticate('facebook', { failureRedirect: '/login' }),
  function(req, res) {
    // Successful authentication, redirect home.
    res.redirect('/');
  });
Source by www.passportjs.org #
 
PREVIOUS NEXT
Tagged: #Facebook #passport #Oauth #authenticate #strategy
ADD COMMENT
Topic
Name
8+3 =