title: How I can add Facebook login to Node.js, Express, Swagger?
body: <p>all! I've Node.js, Express and Swagger(use swagger-express-mw and swagger-tools/middleware/swagger-ui).
  I know how to implement OAuth Facebook login to Node.js and Express but swagger stops logic.
  For example, this logic works:</p>
  
  <pre><code>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('/');
  });
      passport.use(new FacebookStrategy({
          clientID: process.env.FB_ID,
          clientSecret: process.env.FB_SECRET,
          callbackURL: 'http://localhost:5100/api/auth/facebook/callback'
      },
      function(accessToken, refreshToken, profile, cb) {
          console.log('accessToken, refreshToken, profile, cb');
          console.log(accessToken, refreshToken, profile, cb);
          // User.findOrCreate({ facebookId: profile.id }, function (err, user) {
          //     return cb(err, user);
          // });
          // return profile
      }
  ));
  </code></pre>
  
  <p>But If I implement using Swagger I don't get any actions after "/login/facebook":</p>
  
  <pre><code>  /auth/facebook/callback:
  x-swagger-router-controller: Authorization
  get:
    operationId: facebookCallback
    summary: Facebook login
    tags:
      - facebook
    responses:
      "200":
        description: Successful response
        schema:
          $ref: "#/definitions/Response"
  /login/facebook:
    x-swagger-router-controller: Authorization
    get:
      operationId: facebook
      summary: Facebook login
      tags:
        - facebook
      responses:
        "200":
          description: Successful response
          schema:
            $ref: "#/definitions/Response"
  
  
  function facebook(req, res, next) {
    console.log('Stopped here');
    passport.authenticate('facebook');
  }
  function facebookCallback(req, res, next) {
    passport.authenticate('facebook', { failureRedirect: '/login' }),
      function(req, res) {
      console.log('Callback wasn\'t called');
          // Successful authentication, redirect home.
          res.redirect('/');
      }
  }
  </code></pre>
  
  <p>So, I don't understand why cann't see facebook login page?</p>