нужно потестить скрипт, который по -идее должен установить статус в вашем ВК
<?php
define ('VKONTAKTE_LOGIN','your@email.com');
define ('VKONTAKTE_PASSWORD','lolpassword');
if(!$argv[1]) {
die("Укажите бл*дь аргумент!\n");
}
class vkuserapi {
private $curlh = null;
public $uid = null;
private $sid = null;
public function __construct ($login,$password) {
$this->curlh = curl_init();
$request = 'http://login.userapi.com/auth?site=2&login=force&pass='.urlencode($password).'&email='.urlencode($login);
print("Request 1: $request\n");
curl_setopt($this->curlh, CURLOPT_URL,$request);
curl_setopt($this->curlh, CURLOPT_FAILONERROR, true);
curl_setopt($this->curlh, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($this->curlh, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curlh, CURLOPT_POST, false);
curl_setopt($this->curlh, CURLOPT_HEADER, true);
$auth_result = curl_exec($this->curlh);
//print("Auth result: $auth_result\n");
if (preg_match("/remixmid=(\d+)/", $auth_result, $matches)) $this->uid = $matches[1];
if (preg_match("/.*;sid=(\w*)/", $auth_result, $matches)) $this->sid = $matches[1];
}
public function call ($func,$params) {
curl_setopt($this->curlh, CURLOPT_HEADER, false);
$request = 'http://userapi.com/data?act='.$func.'&'.http_build_query ($params).'&sid='.$this->sid;
print("Request 2: $request\n");
curl_setopt($this->curlh, CURLOPT_URL,$request);
$result = curl_exec($this->curlh);
print("And final result: $result\n");
return json_decode($result);
}
public function __destruct () {
$request = 'http://login.userapi.com/auth?login=logout&site=2&sid='.$this->sid;
curl_setopt($this->curlh, CURLOPT_URL,$request);
curl_exec($this->curlh);
curl_close ($this->curlh);
}
}
$vkontakte = new vkuserapi (VKONTAKTE_LOGIN,VKONTAKTE_PASSWORD); // Логинимся
$vkontakte->call ('set_activity',array('ts'=>time(),'text'=>"$argv[1]")); // Обновляем статус
unset ($vkontakte); // Выходим из Vkontakte.ru
?>
p.s. надо php5-cli и php5-curl