How to log out from facebook in my site

后端 未结 2 1615
傲寒
傲寒 2021-01-14 05:37

I\'m using https://github.com/pocesar/facebook-kohana for facebook login. I have problem with facebook logout. It doesn\'t destroy facebook session. I\'ve tried

2条回答
  •  星月不相逢
    2021-01-14 05:59

    Then you don't have a problem with facebook

    Is only the session that needs to be destroyed...

    On this page of PHP manual there is an example showing you might need aditional steps to destroy a session beyond unset($_SESSION)

    http://php.net/manual/en/function.session-destroy.php

    Forcing the users to log off from Facebook does not seem a good move for me.

    Millions of FB users have intentionally asked to stay logged in and if they visit your site and logoff from there they might think it wasn't very friendly of you to log them off the FB accounts. many don't even remember their pwd... so you would be creating a problem for them and they might never comeback to your site... Just saying

提交回复
热议问题