An example how to do Facebook authentication in Rails from scratch.