July 20, 2026
Adding Google & Facebook Login Without a Framework
Comments and likes need an identity, but I didn't want to force visitors to create yet another password. OAuth2 with Google and Facebook solves this without a framework or SDK.
This post covers the authorization code flow: redirect, callback, token exchange, and storing the profile in the users table.
All done with plain cURL requests and a handful of session variables.
Log in to like or comment
Comments (0)
Sign in to join the conversation.