W
W
Worddoc2017-07-04 22:17:02
JavaScript
Worddoc, 2017-07-04 22:17:02

Why is the iframe that shows likes from VK not copied?

Hello. Such a problem, you need to copy the iframe of the finished VK widget, which displays the number of likes. But in the end I get " Invalid application ".

<iframe name="fXD154ce" frameborder="0" src="https://vk.com/widget_like.php?app=3893440&amp;width=100%25&amp;_ver=1&amp;page=0&amp;url=https%3A%2F%2Fetaloncity.ru%2F&amp;type=button&amp;verb=0&amp;color=&amp;title=%D0%9A%D1%83%D0%BF%D0%B8%D1%82%D1%8C%20%D0%BA%D0%B2%D0%B0%D1%80%D1%82%D0%B8%D1%80%D1%8B%20%D0%B2%20%D0%91%D1%83%D1%82%D0%BE%D0%B2%D0%BE%20%D0%BE%D1%82%20%D0%B7%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D1%89%D0%B8%D0%BA%D0%B0.&amp;description=%D0%9A%D0%B2%D0%B0%D1%80%D1%82%D0%B8%D1%80%D0%B0%20%D0%B2%20%D0%A1%D0%B5%D0%B2%D0%B5%D1%80%D0%BD%D0%BE%D0%BC%20%D0%91%D1%83%D1%82%D0%BE%D0%B2%D0%BE%20%D0%B2%20%D0%AD%D1%82%D0%B0%D0%BB%D0%BE%D0%BD-%D0%A1%D0%B8%D1%82%D0%B8%20%D0%BE%D1%82%20%D0%B7%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D1%89%D0%B8%D0%BA%D0%B0%3A%20%D0%B1%D0%BE%D0%BB%D0%B5%D0%B5%2050%20%D0%B2%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%D0%BE%D0%B2%20%D0%BF%D0%BB%D0%B0%D0%BD%D0%B8%D1%80%D0%BE%D0%B2%D0%BE%D0%BA%2C%20%D0%BF%D0%BE%20%D1%81%D0%BA%D0%B8%D0%B4%D0%BA%D0%B5%20%D0%B2%209%25%20%D0%B2%20%D0%B8%D1%8E%D0%BD%D0%B5%202017%20%D0%B3%D0%BE%D0%B4%D0%B0&amp;image=https%3A%2F%2Fwww.etaloncity.ru%2Fs%2Fi%2Fetaloncity_fb.png&amp;text=&amp;h=22&amp;startWidth=0&amp;referrer=&amp;15d0e1b74b2" width="100%" height="22" scrolling="no" id="vkwidget1" style="overflow: hidden; height: 22px; width: 180px; z-index: 150;">

What could be the problem? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kovalsky, 2017-07-05
@Worddoc

Not invalid application , but invalid application domain . When you load a frame, VK checks the URL/origin attached to the application whose ID you sent in the request: if the calling window has a URL/origin corresponding to the attached one, then the frame is loaded. If not, then an Invalid application domain error arrives .
In short, you won't be able to load this frame on pages that don't match the one linked to the app with id = 3893440 .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question