I made my first iframe application for Vkontakte, which simply opens a regular website in the iframe and looks like this:

iframe application for Vkontakte

However, I had a few questions to which I have not yet found the answers:

  1. Is it possible to make it so that when any user of the social network Vkontakte is automatically registered in the game and automatically logged in under the generated login and passwords?

  2. If this is possible, how can this be realized? Where can I read about it?

  3. What else of the functionality of Vkontakte for iframe applications would you recommend me to implement?

Thanks in advance for the answers. Waiting for your advice and your help.

  • I understand that you need to deal with OAuth authorization? I'm right? - spoilt
  • And why all this crap with registration? Just put it on the first launch of the VK VK database and everything, and then get everything you want from it. - ModaL
  • @ eprivalov1 and Travian the official version of some kind of finish, or found some version, and trying to raise your server? - IVsevolod pm

1 answer 1

  1. Yes
  2. It is necessary to read the documentation API contact. When registering, you can make an authorization request and record the contact id, and when entering from the contact application, the incoming id is transmitted and you can search for it. You can also remove this case in the settings, i.e. make bindings.
  3. First, make sure that you can accept users via https, this is a mandatory requirement of vk.com.
  • If you go to the site via https: //, then it does not open ... - spoilt
  • one
    @ eprivalov1 For this, you need SSH support and access via https. Or in the instructions to write how to enter the application so that it works) - IVsevolod