Facebook PHP SDK - will not logout properly

前端 未结 8 750
滥情空心
滥情空心 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:26

    I was able do logout the user from my app using:

    $facebook->destroySession();
    

    The

    $facebook->getLogoutUrl();
    

    makes the user be logged out from facebook, not from your app.

提交回复
热议问题