Facebook PHP SDK - will not logout properly

前端 未结 8 756
滥情空心
滥情空心 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条回答
  •  闹比i
    闹比i (楼主)
    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.

提交回复
热议问题