{"id":23541032,"url":"https://github.com/souravpl8092/facebook-auth","last_synced_at":"2026-04-11T17:05:40.998Z","repository":{"id":157361064,"uuid":"631150729","full_name":"souravpl8092/Facebook-Auth","owner":"souravpl8092","description":"Facebook Authentication using Node.js, Express, and Mongoose","archived":false,"fork":false,"pushed_at":"2023-04-23T18:16:15.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T08:42:00.517Z","etag":null,"topics":["bootstrap","dotenv","ejs","express-sessions","expressjs","mongodb","moongose","nodejs","passport","passport-facebook"],"latest_commit_sha":null,"homepage":"https://plum-nice-lamb.cyclic.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/souravpl8092.png","metadata":{"files":{"readme":"readMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-22T05:02:19.000Z","updated_at":"2024-09-05T13:17:32.000Z","dependencies_parsed_at":"2024-05-28T22:57:22.583Z","dependency_job_id":null,"html_url":"https://github.com/souravpl8092/Facebook-Auth","commit_stats":null,"previous_names":["souravpl8092/facebook-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravpl8092%2FFacebook-Auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravpl8092%2FFacebook-Auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravpl8092%2FFacebook-Auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souravpl8092%2FFacebook-Auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souravpl8092","download_url":"https://codeload.github.com/souravpl8092/Facebook-Auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254274741,"owners_count":22043576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","dotenv","ejs","express-sessions","expressjs","mongodb","moongose","nodejs","passport","passport-facebook"],"created_at":"2024-12-26T05:13:44.594Z","updated_at":"2025-10-27T22:02:20.240Z","avatar_url":"https://github.com/souravpl8092.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e Facebook Authentication using Node.js, Express, and Mongoose \u003c/h1\u003e\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003ctd\u003e\n      \u003ch3 align=\"center\"\u003eBefore Login\u003c/h3\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ch3 align=\"center\"\u003eAfter Login\u003c/h3\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://i.imgur.com/6mHbhs9.png\" alt=\"Before Login\"\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://i.imgur.com/EOUYMOY.png\" alt=\"After Login\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \n\u003c/table\u003e\n\n\u003cbr/\u003e\n\n\u003ch2\u003eOverview\u003c/h2\u003e\n \n### This code implements a Facebook authentication system using Node.js, Express, Passport.js and Mongoose.\n\n\u003cbr/\u003e\n\n\u003ch2\u003eRequirements\u003c/h2\u003e\n\n- Node.js\n- npm or yarn\n- MongoDB instance\n- Facebook App credentials\n\n\u003cbr/\u003e\n\n## Installation\n\n### 1. Clone the repository and install the dependencies:\n\n- git clone https://github.com/souravpl8092/QuestLabs-Assignment.git\n- cd QuestLabs-Assignment\n- npm install\n\n\u003cbr/\u003e\n\n\u003ch3\u003e 2. Create a .env file in the root directory of the project and add the following variables: \u003c/h3\u003e\n\n- SESSION_SECRET = [ your session secret ]\n- FACEBOOK_CLIENT_ID = [ your facebook app client ID ]\n- FACEBOOK_SECRET_KEY = [ your facebook app secret key ]\n- FACEBOOK_CALLBACK_URL = [ your facebook app callback URL ]\n- mongoURL = [ your mongodb URL ]\n- PORT = [ port number to run the server ]\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003ch3\u003e 3. Start the server: \u003c/h3\u003e\n\n- npm start\n\n\u003cbr/\u003e\n\n## Code Explanation\n\n### config/db.js\n\n- This file connects to the MongoDB server using the mongoose library.\n\n\u003cbr/\u003e\n\n### models/User.model.js\n\n- This file defines a User schema using the mongoose.Schema method.\n\n\u003cbr/\u003e\n\n### routes/facebook-auth.js\n\n- This file defines a facebook-auth router using the express.Router method and implements the Facebook authentication strategy using the passport-facebook library.\n\n\u003cbr/\u003e\n\n### server.js\n\n- This file initializes the Express application, sets up the session middleware, passport.js authentication, and defines the routes for the Facebook authentication.\n\n\u003cbr/\u003e\n\n\u003ch2 align=\"center\"\u003eThank You\u003c/h2\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouravpl8092%2Ffacebook-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouravpl8092%2Ffacebook-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouravpl8092%2Ffacebook-auth/lists"}