This is code for logout.php. sessionstart() if(isset(SESSION[fbaccesstoken])) requireonce I have created a article for facebook login logout with graph api with php. You can see the following code for logout from facebook with php. This is code for logout.php.
sessionstart() if(isset(SESSION[fbaccesstoken])) requireonce I tried clearing out the cookies and the session manually, and it still didnt work for some reason (see Facebook PHP: After user logs out ofdata[logoutUrl] this->facebook->getLogoutUrl(params) to redirect the page to a logout controller or a page and then kill the sessions on that page. How can I logout or disconnect a Facebook user in the Facebook connect session? Im using the Facebook developer toolkit.I need to get an anchor tag to delete a session in php log the user out of Facebook. Email Sign Up or sign in with. Google. Facebook. logout and redirecting session in php. Im using Facebook login for my site and I want when I logout from site, facebook session to be destroyed.Were using facebooks official PHP extension in our APPPATH/vendor directory, then we use a helper function for logging into facebook. This page contains top rated real world PHP examples of method FacebookFacebookRedirectLoginHelper::getLogoutUrl extracted from open source projects.File: sessionfacebook.php Project But by this tutorial you will get the understanding how the facebook like messaging system with php works.logout the user and destroy his session.