How to log out users using Facebook Connect in PHP and Zend?

前端 未结 3 2066
礼貌的吻别
礼貌的吻别 2020-12-04 11:54

I am trying to build a Connect app using PHP and the Zend Framework. I also have a Zend_Auth based user authentication system. Now, I am able to log in using Facebook but lo

3条回答
  •  心在旅途
    2020-12-04 12:04

    You can logout the facebook user and redirect the user to your website page with PHP code like this :

    header("Location: " . $facebook->getLogoutUrl(array('next'=>"http://yourwebsite.com/redirectAfterFacebookLogout.php")));

提交回复
热议问题