How to do facebook authentication

It's kind of like facebook authentication or something social nowadays.

This page was helpful. Maybe it's easier than you think?

Note: If you don't register your site URL on the facebook developer site, there will be an error when users return after authentication

Also, information on a god site called dot-install.