How to get involved in a photo like VKontakte and find out how someone likes this photo?
I created the application and there is a “Like” button (or another option, I’ll post just a photo of VKontakte) and I’m sure that my server would immediately know that the photos were like.
You can get likes https://vk.com/dev/likes.getList , but I would like to update themselves like vkontakte.
<script type="text/javascript" src="openapi.js"></script> <div id="vk_like"></div> <script type="text/javascript"> VK.init({apiId: 5309489}); VK.Widgets.Like("vk_like", {type: "button"},55); VK.Observer.subscribe("widgets.like.liked", function f() { alert ("Thank you for your like."); }); </script> //этот код не работает в режиме реального времени How to do this?