function initialize()
{
parent::initialize();
// Provider apis end-points
$this->api->api_base_url = "https://api.ok.ru/fb.do";
$this->api->authorize_url = "https://connect.ok.ru/oauth/authorize";
$this->api->token_url = "https://api.ok.ru/oauth/token.do";
$this->api->sign_token_name = "access_token";
}
function getUserProfile()
{
$this->config['keys']['key'] = '<Публичный ключ приложения>';
$sig = md5('application_key=' . $this->config['keys']['key'] . 'method=users.getCurrentUser' . md5($this->api->access_token . $this->api->client_secret));
$response = $this->api->api( '?application_key=' . $this->config['keys']['key'] . '&method=users.getCurrentUser&sig=' .$sig);
...
}