public static function disconnectSocialProfile($site = 'facebook')
    {
        $config = \Phalcon\DI::getDefault()->getConfig()->social_config->toArray(); //dirname(dirname(dirname(__FILE__ ))) . "/config/social_config.php";
        $hybridauth = new \Hybridauth\Hybridauth($config);
        return $hybridauth->logoutAllProviders();
        //$adapter = $hybridauth->authenticate( "Google" );
        $adapter = $hybridauth->authenticate($site);

        // request user profile
        return $adapter->logout();
    }
public static function disconnectSocialProfile($site = 'facebook')
    {
        $config = \Phalcon\DI::getDefault()->getConfig()->social_config->toArray(); //dirname(dirname(dirname(__FILE__ ))) . "/config/social_config.php";
        $hybridauth = new \Hybridauth\Hybridauth($config);
        return $hybridauth->logoutAllProviders();
        //$adapter = $hybridauth->authenticate( "Google" );
        $adapter = $hybridauth->authenticate($site);

        // request user profile
        return $adapter->logout();
    }
public static function disconnectSocialProfile ( $ site = 'facebook' ) { $ config = \ Phalcon \ DI :: getDefault ( ) -> getConfig ( ) -> social_config -> toArray ( ) ; //dirname(dirname(dirname(__FILE__ ))) . "/config/social_config.php"; $ hybridauth = new \ Hybridauth \ Hybridauth ( $ config ) ; return $ hybridauth -> logoutAllProviders ( ) ; //$adapter = $hybridauth->authenticate( "Google" ); $ adapter = $ hybridauth -> authenticate ( $ site ) ; // request user profile return $ adapter -> logout ( ) ; }
logout the user from its social network

@param string $site
@return boolean
logout the user from its social network