Express 4.x app using Passport for authentication with Facebook.
JavaScript HTML
Latest commit 24cd70e Nov 15, 2016 @jaredhanson jaredhanson committed on GitHub Merge pull request #6 from gordonhgraham/patch-1
update comment in server.js
Failed to load latest commit information.
views Add views. Aug 11, 2015
.gitignore Initial commit. Aug 11, 2015
LICENSE Initial commit. Aug 11, 2015 Initial commit. Aug 11, 2015
package.json Fix description. Aug 11, 2015
server.js Replaced "Twitter" label with "Facebook" Nov 15, 2016

This example demonstrates how to use Express 4.x and Passport to authenticate users using Facebook. Use this example as a starting point for your own web applications.


To install this example on your computer, clone the repository and install dependencies.

$ git clone
$ cd express-4.x-facebook-example
$ npm install

The example uses environment variables to configure the consumer key and consumer secret needed to access Facebook's API. Start the server with those variables set to the appropriate credentials.


Open a web browser and navigate to http://localhost:3000/ to see the example in action.