Client and server side Facebook login example in Ruby On Rails