A basic example on how to integrate facebook auth using the amazing passport.js library and use-express-middleware
Steps:
- cd server
- npm install
- HOST_NAME=
HOST_NAMEFACEBOOK_ID=FACEBOOK_IDFACEBOOK_SECRET=FACEBOOK_SECRETTWITTER_KEY=TWITTER_KEYTWITTER_SECRET=TWITTER_SECRETnode start.js
Note: You need a facebook application, twitter application and to ensure the hostname provided is accessible publicly ( either by hosting it on a public accesible machine or using a tool like ngrok to expose your localhost ).