S
S
Sanders Rocket2020-09-15 21:50:38
PHP
Sanders Rocket, 2020-09-15 21:50:38

How to fix VK AUTH access error?

Hello everyone, it gives an access error VK AUTH, after clicking on authorization
image.png
Code:

<script src="https://vk.com/js/api/openapi.js?168" type="text/javascript"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-4"></div>
<div class="col-4">
<div align="center">
    <h2>Авторизация</h2>
    <script type="text/javascript"> 
    VK.init({ 
    apiId: ; 
    }); 
    </script> 

    <div id="vk_auth"></div> 
    <script type="text/javascript"> 
    window.onload = function () { 
    VK.init({apiId: }); 
    VK.Widgets.Auth('vk_auth', {"authUrl":"/callback.php"}); 
    } 
    </script>
    </div>
    </div>
    <div class="col-4"></div>
    </div>
 </div>
</body>
</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Mikhailov, 2020-09-16
@Psixodelik

Why do you have vk initialized twice?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question