Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Set up posgres

  1. heroku addons:create heroku-postgresql:hobby-dev
  2. heroku config
  3. Copy the POSTGRES_URL to .env file
  4. Connect to db and import the users table in db.sql file

Set up FB Application

  1. Create or use existing FB app from developer portal
  2. Copy app id and secret to environment variables i. Put env variables in .env file ii. Set up deployment (heroku in this example) env variables
  3. Set up redirect urls in the app in FacebookStrategy object config
  4. Add the callback urls to facebook app's whitelisted redirect urls


  1. npm install
  2. node index.js

Deploy on heroku

  1. git init
  2. heroku login
  3. heroku create
  4. git push heroku master

Note: You may get blocked url when /auth/facebook redirects to facebook's oauth pages due to Facebook's blocks on heroku IP addresses. If you see this, the heroku instance you deployed will not be able to work with Facebook oauth. Deploy somewhere else or use outboud proxy services like Proximo on heroku instance to solve this issue.

You can’t perform that action at this time.