• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Integration/Seo/Facebook/FacebookFacade.php
  • Класс: BitrixCatalogv2IntegrationSeoFacebookFacebookFacade
  • Вызов: FacebookFacade::isExportAvailable
public function isExportAvailable(): bool
{
	// ToDo
	// if (!ModuleManager::isModuleInstalled('bitrix24'))
	// {
	// 	return false;
	// }

	$region = BitrixMainApplication::getInstance()->getLicense()->getRegion();
	if ($region === null || $region === 'ru')
	{
		return false;
	}

	if (Option::get('catalog', 'fb_product_export_enabled', 'N') !== 'Y')
	{
		return false;
	}

	if (!Loader::includeModule('seo'))
	{
		return false;
	}

	return true;
}