heroku/facebook-template-ruby — Issue #4: Example for using 'authenticator.get_user_info_from_cookies'
Author: sc0ttman
Created: 2012-02-29 20:16:33+00:00
State: open

Hey guys,

Thanks so much for the Sinatra/Koala demo. I was wondering if someone could help me with a using the get_user_info_from_cookies method that the Koala OAuth object provides.

I want to be able to use the FB JS Api for user authentication initially (less forwarding around when its a FB Tab app),
Once I receive a response (via ajax) from the "FB.ui({method: "permissions.request" " call, I would like to hit an action on my server ("/vote/34" for example) and get the FB user object server-side without having to redirect again. Can this be done using the "get_user_info_from_cookies" method? If so can someone help by providing an example?

Thanks a lot!