• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/facebook.php
  • Класс: CFacebookInterface
  • Вызов: CFacebookInterface::GetAppInfo
public function GetAppInfo()
{
	if($this->access_token === false)
		return false;

	$http = new HttpClient();
	$http->setTimeout($this->httpTimeout);

	$result = $http->get(self::GRAPH_URL.'/debug_token?input_token='.$this->access_token.'&access_token='.$this->appID."|".$this->appSecret);
	$result = Json::decode($result);

	if($result["data"]["app_id"])
	{
		$result["id"] = $result["data"]["app_id"];
	}

	return $result;
}