- clone repo
- install dependencies using
yarn
or npm install - copy
.env.example
and rename it to.env
- set your configuration in
.env
- start program using
npm start
Notes: this endpoint is prefixed with /api
and use GET
method
/
: default route. Will provide user info if it's login already or will tell you if you're not login yetlogin
: will redirect you to facebook authorization page or tosuccess
if you're already authorized this appsuccess
: this page will display user info. Will redirect to this page after successful loginlogout
: logout from this app
For FB_CLIENT_ID & FB_CLIENT_SECRET, you must first create an app in your facebook developer account or you can use mine, just ask and I will provide it (probably)