Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Zachot

    (@zachot)

    after line 145 (after function start)

    ...
    function getUserProfile()
    {
      $key_temp = ($this->config['keys']['key']) ? $this->config['keys']['key'] : '************PUBLIC KEY**********';
      $sig = md5('application_key=' . $key_temp . 'method=users.getCurrentUser' . md5($this->api->access_token . $this->api->client_secret));
    ...

    Thread Starter Zachot

    (@zachot)

    wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/Providers/Odnoklassniki.php

    line 145 (function getUserProfile())

    insert this
    
    $key_temp = ($this->config['keys']['key']) ? $this->config['keys']['key'] : 'PUBLIC KEY';
    
    and change 
    
    $sig = md5('application_key=' . $key_temp . 'method=users.getCurrentUser' . md5($this->api->access_token . $this->api->client_secret));
    $response = $this->api->api( '?application_key=' . $key_temp . '&method=users.getCurrentUser&sig=' .$sig);

    I made these changes and it worked.

    there is no field with public key in settings for ‘odnoklasniki.ru’

Viewing 2 replies - 1 through 2 (of 2 total)