I'm trying to start up with a vk.com tab app and I'm using the php api sdk and for some reason when I try to get the user profile info I get this:
Incorrect signature: sid & secret authorization
the code is as fallows:
try {
$vkontakte = new VKontakte(array('testMode' => true, 'fileUpload' => false));
$vkontakte->setApiId(XXXXXXX);
$vkontakte->setSecret('XXXXXXXXXX');
$viewerId = $vkontakte->getViewerId();
$profiles = $vkontakte->getProfiles(array(
'uids' => $viewerId,
'fields' => 'nickname,sex,bdate,photo,photo_big,mobile_phone,has_mobile,home_phone,rate'
));
} catch (Exception $e) {
echo '<pre>';
echo $e->getMessage();
echo '</pre>';
}
Any idea what might be wrong here? or what should be done?