Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vkontakte.ru changed to vk.com

  • Loading branch information...
commit 76b5502d945d819b7caaf7176dbcd1c60552ca2b 1 parent b7c6264
guiltar authored
4 additional-providers/hybridauth-vkontakte/Providers/Vkontakte.php
View
@@ -24,7 +24,7 @@ function initialize()
parent::initialize();
// Provider api end-points
- $this->api->authorize_url = "http://api.vkontakte.ru/oauth/authorize";
+ $this->api->authorize_url = "http://api.vk.com/oauth/authorize";
$this->api->token_url = "https://api.vk.com/oauth/token";
//$this->api->token_info_url
}
@@ -78,7 +78,7 @@ function getUserProfile()
$params['uid'] = Hybrid_Auth::storage()->get( "hauth_session.{$this->providerId}.user_id" );
$params['fields'] = 'first_name,last_name,nickname,screen_name,sex,bdate,timezone,photo_rec,photo_big';
// ask vkontakte api for user infos
- $response = $this->api->api( "https://api.vkontakte.ru/method/getProfiles" , 'GET', $params);
+ $response = $this->api->api( "https://api.vk.com/method/getProfiles" , 'GET', $params);
if (!isset( $response->response[0] ) || !isset( $response->response[0]->uid ) || isset( $response->error ) ){
Please sign in to comment.
Something went wrong with that request. Please try again.