Returns the defined Facebook App ID in the root page or system settings.
@return string
347270
public static function getAppId()
    {
        global $objPage;

        if (TL_MODE == 'FE' && $objPage)
        {
            return PageModel::findById($objPage->rootId)->fb_app_id ?: Config::get('fb_app_id');
        }

        return Config::get('fb_app_id');
    }
1093814
private function getVisitorId()
    {
        $tracker = $this->getVisitorTracker();
        $data    = $tracker->checkData($this->visitorData, [
            'user_id'     => $this->getUserId(),
            'device_id'   => $this->getDeviceId(),
            'client_ip'   => $this->request->getClientIp(),
            'geoip_id'    => $this->getGeoIpId(),
            'agent_id'    => $this->getAgentId(),
            'referer_id'  => $this->getRefererId(),
            'cookie_id'   => $this->getCookieId(),
            'language_id' => $this->getLanguageId(),
            'is_robot'    => $this->isRobot(),
            'user_agent'  => $this->getUserAgentTracker()->getUserAgentParser()->getOriginalUserAgent(),
        ]);

        $this->mergeVisitorData($data);

        return $tracker->track($this->visitorData);
    }
687881
public function getRequestId()
    {
        if (isset($this->rawResponse) &&
            isset($this->rawResponse->header) &&
            isset($this->rawResponse->header['x-oss-request-id'])
        ) {
            return $this->rawResponse->header['x-oss-request-id'];
        } else {
            return '';
        }
    }
1151342
public static function id() {
		if (!empty(self::$override_tenant_id)) {
			return (int) self::$override_tenant_id;
		} else {
			$default_tenant_id = \Application::get('application.structure.tenant_default_id');
			if (!empty($default_tenant_id)) {
				return (int) $default_tenant_id;
			}
		}
		return (int) \Application::get('application.structure.settings.tenant.id');
	}
439671
public function onlineId() : string
    {
        if ($this->onlineId === null) {
            $response = $this->httpClient()->get(sprintf(User::USERS_ENDPOINT . 'profile2', 'me'), [
                'fields' => 'onlineId'
            ]);

            $this->onlineId = $response->profile->onlineId;
        }
        return $this->onlineId;
    }
253562
public function getFacebook()
        {
            return isset($this->_data[self::PROFILE][self::FACEBOOK_ID]) ? $this->_data[self::PROFILE][self::FACEBOOK_ID] : null;
        }
983520
public function getId() : ?int 
    {
        if ( ! $this->hasId()) {
            $this->setId($this->getDefaultId());
        }
        return $this->id;
    }
1282484
public function getFrontPageID() {
		// Core WP only handles either 'page' or 'posts' as of 2016-07-22
		$type = $this->getOption('show_on_front');
		if ($type !== 'page')
		{
			throw new Exception('Cannot use "'.__FUNCTION__.'" if Wordpress database isn\'t using a page as it\'s home page. Type = '.$type);
		}
		$wordpressID = $this->getOption('page_on_front');
		if ($wordpressID) {
			return $wordpressID;
		} else {
			$wordpressID = ($wordpressID === false) ? 'false' : $wordpressID; // Fix printing of 'false'
			throw new Exception('Invalid ID #'.$wordpressID.' returned from "'.__FUNCTION__.'"');
		}
	}
309151
public function getRootPageId()
    {
        $rootPageId = 0;

        if (empty($this->rootLineArray)) {
            return $rootPageId;
        }

        foreach ($this->rootLineArray as $page) {
            if (Site::isRootPage($page)) {
                $rootPageId = $page['uid'];
            }
        }

        return $rootPageId;
    }
422200
public function getUserId()
    {
        $id = $this->getAttribute('userId');
        if (null === $id && null !== $this->user) {
            $id = $this->userId = $this->user->id;
        }

        return $id;
    }
1216123
public function get_user_id()
    {
        if (is_object($this->user)) {
            return $this->user->ID;
        }
        else if (isset($_SESSION['user_id'])) {
            return $_SESSION['user_id'];
        }

        return null;
    }
1280982
public function id()
    {
        if ($this->loggedOut) {
            return;
        }

        $id = $this->session->get($this->getName(), $this->getRecallerId());

        if (is_null($id) && ! is_null($user = $this->user())) {
            $id = $user->getAuthIdentifier();
        }

        return $id;
    }
949769
protected function getUserId()
    {
        if (property_exists($this, 'userKey'))
        {
            $userKey = $this->userKey;

            return $this->$userKey;
        }

        if ( ! is_null($this->user_id))
        {
            return $this->user_id;
        }

        return null;
    }
401036
public function getRequestId()
    {
        if ($this->requestId == null) {
            $this->requestId = $this->generateRequestId();
        }

        return $this->requestId;
    }
219719
protected static function _getUserId()
    {
        if (is_null(self::$_userID)) {
            self::$_userID = null;
            if (isset(Yii::$app->user) and !empty(Yii::$app->user->id)) {
                self::$_userID = Yii::$app->user->id;
            }
        }

        return self::$_userID;
    }
1333016
private function getUserId()
    {
        if (!$this->tokenProvider || null === ($token = $this->tokenProvider->getToken())) {
            return;
        }

        if (!$token->getUser() instanceof UserInterface) {
            return;
        }

        return $token->getUser()->getId();
    }
310531
protected function _getFacebookClient() {
        $authVars = $this->_getAuthVars();
        $facebook = Garp_Social_Facebook::getInstance(array(
            'appId'  => $authVars->appId,
            'secret' => $authVars->secret,
            'cookie' => false,
        ));
        return $facebook;
    }