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

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

	$result = $http->get(self::GRAPH_URL.'/me?access_token='.$this->access_token."&fields=picture,id,name,first_name,last_name,gender,email");

	return Json::decode($result);
}