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);
...
}
curl_setopt($curl, CURLOPT_COOKIEFILE, "");
$cookies = curl_getinfo($curl, CURLINFO_COOKIELIST);
curl_setopt($curl, CURLOPT_COOKIE, $newCookies);
SELECT post_name FROM wp_posts WHERE post_name = 'труляля-765' AND post_type = 'post' AND ID != 0 LIMIT 1
'post_name' => '',