O
O
oe24y2014-09-30 16:23:00
PHP
oe24y, 2014-09-30 16:23:00

How to properly connect a site to the IFrame application of VKontakte?

Here is the page code for the Iframe:

<html>
<head>
    <title>Заголовок страницы</title>
  <script src="//vk.com/js/api/xd_connection.js?2"  type="text/javascript"></script>
        <script type='text/javascript' src='http://code.jquery.com/jquery-2.1.1.min.js'></script>
</script>
</head>
<body>

<h1>
    Название
</h1>


But the app doesn't show up. Here's what's in the browser console):
500th error when requesting the page mysite.com/?api_url=http://api.vk.com/api.php&ap ...
8792477610df44b99116acacf88b1b8d.png
What else needs to be provided on the server side, besides the usual HTML file with included JS file from SDK?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Online store without Php, 2015-04-07
@HEEG

The content of the Iframe page can be anything. Even if you do not connect the VKontakte js api to it, the page will still be displayed if its address starts with https . for example, here is a page from google drive https://www.googledrive.com/host/0BwJdr1z6VMXjcXpl...
here it is inserted in vkontakte https://vk.com/app4734761_810555

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question