Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Flavio Wuensche's Profile

GitHub User: fwuensche

Site: http://www.vandal.com.br

Comments by Flavio Wuensche

Avatar

Notice that if you don't want your users to be logged out from Facebook when logging out from your app you should change your javascript file to the following code. Any better solutions for that?

facebook.js.coffee.erb
  $('#sign_out').click (e) ->
    FB.getLoginStatus (response) ->
      window.location = '/signout' if response.authResponse
    true

PS: I'm doing it just because I find it annoying to logout users from Facebook without asking them to do so.

Avatar

Did anyone find another solution than just using gem 'omniauth-facebook', '1.4.0' ?