I got to replicate my earlier work for Google Signin for FB Sign in. I had done it before so I went super fast at it and also skipping many features. As I already wrote before it’s pointless to pull redundant details from internet and paste on my blogs and anyways not many people read my website, LOL.
Have a website to pull User’s email, name and some ID upon sign in
Have a callback upon sign in and sign out where a custom task can be coded
As POC, I made a simple website to solve this problem, this one: FBWebSignin. I had observed that I need to follow only two tiny details:
Have a FB Developers App to have FB handle Auth
Have code pointers to call FB from Website
Have a FB Developers App to have FB handle Auth:
I headed to FB Developer App page page and then to
Basic Settingswhere I whitelisted my domains for oAuth.
Have code pointers to call FB from Website:
This is documented on FB Dev Docs along with the code sample:
In the Scripts:
I felt it was straightforward to implement and does not have many dependencies to slow me down. Having a simple website to call FB Sign-in is very satisfying. I tested it on my Chrome browser by going to the URL. For my demo, the source is hosted on GitHub repo: FBWebSignin repo, quick sneak peek is below: