• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/businesssuite/authadapter/facebook/businessauthadapter.php
  • Класс: BitrixSeoBusinessSuiteAuthAdapterFacebookBusinessAuthAdapter
  • Вызов: BusinessAuthAdapter::getAuthUrl
public function getAuthUrl()
{
	if(!SeoService::isRegistered())
	{
		SeoService::register();
	}
	$authorizeUrl = SeoService::getAuthorizeLink();
	$authorizeData = SeoService::getAuthorizeData(
		$this->getEngineCode(),
		$this->canUseMultipleClients() ? SeoService::CLIENT_TYPE_MULTIPLE : SeoService::CLIENT_TYPE_SINGLE
	);
	$uri = new Uri($authorizeUrl);
	if(!empty($this->parameters['URL_PARAMETERS']))
	{
		$authorizeData['urlParameters'] = $this->parameters['URL_PARAMETERS'];
	}
	if($this->setup && $this->config)
	{
		$authorizeData['settings'] = Json::encode([
			'setup' => $this->setup->toArray() + ($this->installs? $this->installs->toArray() : []),
			'business_config' => $this->config->toArray(),
			'repeat' => false
		]);
	}

	$uri->addParams($authorizeData);
	return $uri->getLocator();
}