Skip to content

Instantly share code, notes, and snippets.

@deflexor
Created December 1, 2016 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deflexor/dd25abe2f24cdb2d5afc2147cc1b3b99 to your computer and use it in GitHub Desktop.
Save deflexor/dd25abe2f24cdb2d5afc2147cc1b3b99 to your computer and use it in GitHub Desktop.
<script src="https://vk.com/js/api/xd_connection.js?2" type="text/javascript"></script>
<script type="text/javascript">
function onInit() {
console.log("Post ID");
}
VK.init(function() {
// API initialization succeeded
// Your code here
onInit();
}, function() {
// API initialization failed
// Can reload page here
}, '5.60');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment