现在我已经像这样实现了facebook登录

首先,生成一个登录URL

$this->data['login_url'] = $this->facebook->getLoginUrl(array(
            'redirect_uri' => site_url('secure/login_fb'),
            'scope' => array("email") //permission
        ));

并在重定向检查并在系统中注册用户 .

问题是, if the user can not register in the system, the facebook login record is still there,

但我想删除会话,并允许用户使用其他Facebook帐户再次登录

如何使用PHP facebook SDK注销和删除会话?

尝试

$this->facebook->destroySession(); 但登录会话仍在那里

谢谢你的帮助 .