Facebook PHP SDK - will not logout properly

前端 未结 8 740
滥情空心
滥情空心 2021-02-09 17:21

I\'ve been searching for hours for the solution to this problem but can\'t find one that works for me. When i click \"Logout\" on my site the user information is still visible a

相关标签:
8条回答
  • 2021-02-09 17:39

    You can solve this problem by specifying external logout problem. You can have a look at here

    for detail information. It is a good tutorial for this problem.

    Hope this helps

    0 讨论(0)
  • 2021-02-09 17:43

    Had some kind of similar trouble with that. Even

    $facebook->destroySession();
    

    didn't work properly until I removed

    $facebook->getLogoutUrl();
    

    call completely. getLogOutUrl() added some parameter that conflicted later with my .htaccess and led to *"mod_fcgid: stderr: CSRF state token does not match one provided"* error.

    0 讨论(0)
提交回复
热议问题