NukeViet\Client\Browser::checkFacebookExternalHit PHP Method

checkFacebookExternalHit() protected method

Detect if URL is loaded from FacebookExternalHit
protected checkFacebookExternalHit ( ) : boolean
return boolean True if it detects FacebookExternalHit otherwise false
    protected function checkFacebookExternalHit()
    {
        if (stristr($this->_agent, 'FacebookExternalHit')) {
            $this->setRobot(true);
            $this->setFacebook(true);
            return true;
        }
        return false;
    }