RailsCasts Pro episodes are now free!

Learn more or hide this

Flavio Wuensche's Profile

GitHub User: fwuensche

Site: https://www.touts.com.br

Comments by Flavio Wuensche

Avatar

It's 2017 and the content of these videos are still relevant. Thank you, Ryan!

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' ?