<?php $token = 'ВАШ ТОКЕН'; // Access token получить тут http://vk.cc /1ihg6R $online = api('account.setOnline', 'access_token='.$token); echo $online['response']; function api($method, $param) { $getApi = file_get_contents(' https://api.vk.com /method/'.$method.'?'.$param); return json_decode($getApi, true); } ?>