Answer the question
In order to leave comments, you need to log in
Error connecting open api vk?
Hello. Did everything by example, initialization and authorization.
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Test</title>
<!-- <script src="https://vk.com/js/api/xd_connection.js?20" type="text/javascript"></script> -->
<script src="https://vk.com/js/api/openapi.js?146" type="text/javascript"></script>
</head>
<body>
<div id="res"></div>
<script type="text/javascript" language="javascript">
VK.init({
apiId: ******
});
VK.Auth.login(response => {
if (response.session) {
console.log(True);
} else {
console.log(False);
}
})
</script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question