D
D
Dimas1232017-03-30 15:09:15
PHP
Dimas123, 2017-03-30 15:09:15

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>

How to automatically embed a post from vk to the site, knowing the url https://vk.com/wall1_1652034 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AdrianBlair, 2017-03-30
@AdrianBlair

https://vk.com/dev/wall.get

A
Alexander Lebedev, 2017-03-30
@lebedev444

So https://vk.com/dev/Poll
then you will get the code...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question