VK.init({
apiId: *******,
scope: 4
});
var app = {
auth: {} // authorization result
}
VK.Auth.login(function(response) {
$.each(response, function (index, value) {
app.auth[index] = value;
});
});
VK.Api.call('photos.getAlbums', {owner_id: this.auth.session.user.id
function(r) {
alert(r);
});