Answer the question
In order to leave comments, you need to log in
Vkontakte open api and rights issue?
I can not figure out how to set the rights to the application. Everything seems to be simple:
We connect in the header
<script src="http://vk.antizapret.ru/js/api/xd_connection.js?2" type="text/javascript"></script><br/>
<script src="http://vkontakte.ru/js/api/openapi.js" type="text/javascript"></script><br/>
<script type="text/javascript"><br/>
<br/>
VK.init({<br/>
apiId: my_id<br/>
});<br/>
<br/>
VK.UI.button('login_button');<br/>
<br/>
VK.callMethod('showInstallBox',0);<br/>
</script><br/>
<br/>
TypeError: Result of expression 'options' [undefined] is not an object. vkontakte.ru/js/api/openapi.js:317
Answer the question
In order to leave comments, you need to log in
Similar problem.
I figured out what is happening because of the conflict between xd_connection and openapi.
If xd_connection is loaded first, then the openapi functions (widgets, etc.) do not work, if vice versa, then the js api functionality of the contact does not work accordingly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question