Facebook PHP Destroy Session -
despite me trying hours on this, can't figure out why can't destroy facebook session. logout url logs out of facebook, can't destroy session. i've trawled through stack overflow none of answers have helped far. session_start(); $app_id = 'xxx'; $app_secret = 'xxx'; $redirect_uri = 'xxx'; $permissions = array(xxx); define( 'root', dirname( __file__ ) . '/' ); require_once( root . 'facebook-php-sdk-v4-4.0-dev/autoload.php' ); use facebook\facebooksession; use facebook\facebookredirectloginhelper; // initialize sdk facebooksession::setdefaultapplication( $app_id, $app_secret ); $helper = new facebookredirectloginhelper( $redirect_uri ); // check if existing session exists if ( isset( $_session ) && isset( $_session['fb_token'] ) ) { // create new session saved access_token $session = new facebooksession( $_session['fb_token'] ); // validate access_token make sure it's still valid ...