Вот код (был взят с этого форума)
Код: Выделить всё
<script type="text/javascript"> VK.init(function() { VK.api('wall.getPhotoUploadServer', {}, function (data) { if (data.response) { $.post( '/gimage/posting.php', {upload_url:data.response.upload_url}, function (json) { VK.api("wall.savePost", { wall_id: "<? echo $_GET['viewer_id']; ?>", server: json.server, photo:json.photo, hash: json.hash, post_id:"123", photo_id:data.id , message: 'test' }, function(data) { VK.callMethod("saveWallPost", data.response.post_hash); }); }, 'json'); } }); });</script>
Поиском пользовался, ничего не помогло.