I am using Rails 3.1 with Devise 1.4 and Omniauth 0.3. Have created omniauth strategy to authenticate through Facebook and it works nicely.
In javascript I am catching an event to know if user is already logged in to facebook.
FB.Event.subscribe('auth.login', function(response) {
// respone contains user id with access token
});
What I cannot figure out is how to use that information to authenticate user. How do I tell devise that user is logged in?