Apparently, there was a mistake inside the setFacebookId
method:
/**
* @param string $facebookId
* @return void
*/
public function setFacebookId($facebookId)
{
$this->facebookId = $facebookId;
$this->salt = '';
if(empty($this->username)) {
$this->setUsername($facebookId);
}
}
The salt was being overwritten. Removing that line actually solve the problem:
/**
* @param string $facebookId
* @return void
*/
public function setFacebookId($facebookId)
{
$this->facebookId = $facebookId;
if(empty($this->username)) {
$this->setUsername($facebookId);
}
}