title: Passport facebook logout not working
body: <p>I trying to implement passport Facebook the code i have in server.js is shown below
  route which is used when user click login via facebook</p>
  
  <pre><code> router.get('/auth/facebook',
        passport.authenticate('facebook',{ scope : 'email' }),
        function(req, res){
        });
  </code></pre>
  
  <p>on successful login it redirects to success.html which as the logout button</p>
  
  <pre><code> router.get('/auth/facebook/callback',
        passport.authenticate('facebook', {
          successRedirect : '/success',
          failureRedirect: '/'
        }),
        function(req, res) {
          res.render('success.html');
        });
  </code></pre>
  
  <p>logout route is</p>
  
  <pre><code>  router.get('/logout', function(req, res){
        req.logout();
        res.redirect('/');
      });
  </code></pre>
  
  <p>if i click on logout button still i will be redirected to home page</p>
  
  <pre><code>router.get('/', function(req, res){
    res.render('auth.html');
  });
  </code></pre>
  
  <p>auth.html</p>
  
  <pre><code>  &lt;html&gt;
          &lt;head&gt;
            &lt;title&gt;Node.js OAuth&lt;/title&gt;
          &lt;/head&gt;
          &lt;body&gt;
          &lt;a href="/auth/facebook"&gt;Sign in with Facebook&lt;/a&gt;
          &lt;/body&gt;
          &lt;/html&gt;
  
  
  
  
  but after if i click the Sign in with Facebook link i will directly take to success.html page  and again i was never able to see the Facebook login page where we provide the credentials of the Facebook account 
  </code></pre>
  
  <p>*i tried remove the details from the database but still it is pointing to to success.html
  *i tried by removing the cookie as well as with new instance of browser
  *no luck please point me to filed what might be the error</p>