I am trying to build a Connect app using PHP and Zend Framework. I also have a Zend_Auth based user authentication system. Now, I am able to log in using Facebook but log out is not working.
I need to clear the Zend_Auth identity as well as remove all Facebook login info as well. What would be the best way to do this?
I tried facebook_client->expire_session()
and facebook_client->clear_cookie_state();
together and also facebook_client->logout($next)
after calling Zend_Auth::getInstance()->clearIdentity()
None of them seem to work.