src/User.php
public function socialUnlink($provider, $userid = null)
	{
		$this->debug->groupCollapsed(__METHOD__);
		if ($userid === null) {
			$userid = $this->userid;
		}
		$where = array(
			'userid'	=> $userid,
			'provider'	=> strtolower($provider),
		);
		$this->db->rowMan('user_social', null, $where);
		$this->log('sociaUnlink', $userid, array(
			'provider' => strtolower($provider),
		));
		$this->debug->groupEnd();
		return;
	}
public function socialUnlink($provider, $userid = null)
	{
		$this->debug->groupCollapsed(__METHOD__);
		if ($userid === null) {
			$userid = $this->userid;
		}
		$where = array(
			'userid'	=> $userid,
			'provider'	=> strtolower($provider),
		);
		$this->db->rowMan('user_social', null, $where);
		$this->log('sociaUnlink', $userid, array(
			'provider' => strtolower($provider),
		));
		$this->debug->groupEnd();
		return;
	}
public function socialUnlink ( $ provider , $ userid = null ) { $ this -> debug -> groupCollapsed ( __METHOD__ ) ; if ( $ userid === null ) { $ userid = $ this -> userid ; } $ where = array ( 'userid' => $ userid , 'provider' => strtolower ( $ provider ) , ) ; $ this -> db -> rowMan ( 'user_social' , null , $ where ) ; $ this -> log ( 'sociaUnlink' , $ userid , array ( 'provider' => strtolower ( $ provider ) , ) ) ; $ this -> debug -> groupEnd ( ) ; return ; }
unlink user from authentication provider

@param string  $provider Facebook, Twiter, etc
@param integer $userid   optional

@return void
unlink user from authentication provider