in reply to Login with facebook using Perl

I think all "Log in With Facebook" (or Log in with Twitter, etc.) are based on OAuth (resp. OAuth2). The protocol seems to be full of flaws, but it's the "industry standard". See the Facebook documentation on it.