<script type="text/javascript">
$(document).ready(function() {
VK.init({
apiId : *******,
});
VK.Auth.login(loginHandler, VK.access.PHOTOS);
function loginHandler(response) {
// ...
}
});
</script>
response = Object {session: null, status: "unknown"}