title: passport-facebook - 'X-Frame-Options' to 'DENY'
body: <p>I'm trying to develop a facebook connect with node and passport. But I'm having this error in my browser console:</p>
  
  <p>Refused to display '<a href="https://www.facebook.com/dialog/oauth?response_type=code&amp;redirect_uri=http%" rel="nofollow">https://www.facebook.com/dialog/oauth?response_type=code&amp;redirect_uri=http%</a>…te_event%2Cuser_birthday%2Cemail&amp;client_id=632348833449996&amp;type=web_server' in a frame because it set 'X-Frame-Options' to 'DENY'. about:blank:1</p>
  
  <p>This is part of the code:</p>
  
  <pre><code>passport.use(new FacebookStrategy({
      clientID: "XXX",
      clientSecret: "XXX",
      callbackURL: "`http://localhost:3000/auth/facebook/callback`"
  },
  function(accessToken, refreshToken, profile, done) {
    var fullname = profile._json.first_name + ' ' + profile._json.last_name;
    // Web services all for user persistence
    }
  ));
  
  // configure Express
  app.configure(function() {
  app.use(express.logger());
  app.use(express.cookieParser());
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.session({ secret: 'keyboard cat' }));
  
  // Initialize Passport!  Also use passport.session() middleware, to support
  // persistent login sessions (recommended).
  app.use(passport.initialize());
  app.use(passport.session());
  app.use(app.router);
  });
  
  
  app.all('/auth/facebook', passport.authenticate('facebook', { scope: ['read_stream',     'publish_actions','user_interests','read_friendlists','create_event','user_birthday','email'    ]}));
  
  app.all('/auth/facebook/callback', passport.authenticate('facebook',{ successRedirect:   '/',failureRedirect: '/login' }));
  
  app.listen(3000);
  </code></pre>
  
  <p>On my facebook app configuration I've set the App On Facebook configuration with the following URL: <code>http://localhost:3000/auth/facebook/</code></p>
  
  <p>What I'm doing wrong?</p>