{"id":16906517,"url":"https://github.com/rsms/connect_facebook","last_synced_at":"2025-03-20T16:40:51.119Z","repository":{"id":57205806,"uuid":"1504376","full_name":"rsms/connect_facebook","owner":"rsms","description":"Facebook session support for Connect","archived":false,"fork":false,"pushed_at":"2011-03-20T21:28:08.000Z","size":100,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T21:17:04.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/rsms.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}},"created_at":"2011-03-20T21:27:56.000Z","updated_at":"2017-06-15T15:37:40.000Z","dependencies_parsed_at":"2022-09-18T01:32:33.565Z","dependency_job_id":null,"html_url":"https://github.com/rsms/connect_facebook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fconnect_facebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fconnect_facebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fconnect_facebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fconnect_facebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/connect_facebook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244653329,"owners_count":20488221,"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":[],"created_at":"2024-10-13T18:42:58.466Z","updated_at":"2025-03-20T16:40:51.092Z","avatar_url":"https://github.com/rsms.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# connect_facebook\n\nFacebook session support for [Connect](http://senchalabs.github.com/connect/).\n\n*connect\\_facebook* enables you to build web sites that use [Facebook authentication](https://developers.facebook.com/docs/reference/javascript/FB.login/) both on the front-end (HTML/JS) and the back-end (server-side), allowing for a smooth user experience.\n\nThis middleware reads and cryptographically verifies the session, making it accessible from `req.fb_session` -- an object if authorized and valid, otherwise the request has no valid Facebook user session. The `req.fb_session` object is the same as returned by the client-side `FB.getLoginStatus`, `auth.sessionChange` event, etc.\n\n\n## Example\n\nserver.mv\n\n    import connect, connect_facebook\n    connect()\n      .use(connect_facebook('YOUR_FACEBOOK_APP_ID', 'YOUR_FACEBOOK_APP_SECRET'))\n      .use(^(req, res, next) {\n        res.end(req.fb_session ? 'Logged in' : 'Not logged in')\n      })\n      .listen 3000\n\nSee `example/` for a complete demo including client-side code.\n\n\n## MIT license\n\nCopyright (c) 2011 Rasmus Andersson \u003chttp://rsms.me/\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fconnect_facebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Fconnect_facebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fconnect_facebook/lists"}