Answer the question
In order to leave comments, you need to log in
How to automatically embed a post from vk to the site?
I have lists of posts from VK, for example https://vk.com/wall1_1652034
How to embed these posts on my website?
1) Iframe does not work, they apparently have protection.
2) Share->Export generates an ideal option that suits me, if not for some key "4BvTLEb504yWAMCwmwV_Ljq8K3M", which I don't know how to automatically generate, but without it does not work.
<div id="vk_post_1_1652034"></div><script type="text/javascript"> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//vk.com/js/api/openapi.js?143"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'vk_openapi_js')); (function() { if (!window.VK || !VK.Widgets || !VK.Widgets.Post || !VK.Widgets.Post("vk_post_1_1652034", 1, 1652034, '4BvTLEb504yWAMCwmwV_Ljq8K3M')) setTimeout(arguments.callee, 50); }());</script>
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