• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/facebook.php
  • Класс: CFacebookInterface
  • Вызов: CFacebookInterface::SetOauthKeys
private function SetOauthKeys($socServUserId)
{
	$dbSocservUser = BitrixSocialservicesUserTable::getList([
		'filter' => ['=ID' => $socServUserId],
		'select' => ["OATOKEN", "XML_ID"]
	]);
	while($arOauth = $dbSocservUser->fetch())
	{
		$this->access_token = $arOauth["OATOKEN"];
		$this->userId = $arOauth["XML_ID"];
	}
	if(!$this->access_token || !$this->userId)
		return false;
	return true;
}