Rails 3 Facebook Authentication - Omniauth-Facebook

In this code -
FB.login(
function(response) {
if (response.authResponse) {
return window.location = ‘/auth/facebook/callback’;
}
}, { scope: ‘email’ }
);

Instead of doing “window.location” here, how it can be done through
ajax?
Please help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs