Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: fwuensche
$('#sign_out').click (e) ->
FB.getLoginStatus (response) ->
window.location = '/signout' if response.authResponse
PS: I'm doing it just because I find it annoying to logout users from Facebook without asking them to do so.
Did anyone find another solution than just using gem 'omniauth-facebook', '1.4.0' ?