based on http://richonrails.com/articles/facebook-authentication-in-ruby-on-rails