how to logout from both facebook and devise

I have the following scenario:

  • User logs in with Facebook connect (devise, omniauth)
  • User starts browsing around the site
  • User logs out from Facebook
  • User can still browse around. <-- how can I prevent this from happening?


I followed but still i cannot solve


You can redirect user to facebook logout page with access token.

redirect_to "{YOUR_REDIRECT_URL}&access_token=#{USER_ACCESS_TOKEN}"

You can integrate with devise like that:


def after_sign_out_path_for(resource_or_scope)

Need Your Help

How to populate multiple foreign keys in mongoose

node.js mongodb mongoose populate

Lets say I have and object reference already set for the ids in userId:

Currency format input values in ZF2 Doctrine

php doctrine2 zend-framework2

When I save a form I can automatically format the value with an inputfilter. Is this also possible when I hydrate a form to edit the object?