S
S
skorney2011-02-04 17:50:22
In contact with
skorney, 2011-02-04 17:50:22

How to find out if a vkontakte user is logged in?

Question from FB.getLoginStatus and VK.Auth.getLoginStatus
The Facebook API has 3 states for a user who has logged into your site:

  1. Logged into the application
  2. Logged into Facebook but not logged into the app
  3. Not logged into Facebook at all.

As far as I know, Vkontakte supports only 2 states:
  1. Logged into the application
  2. Not logged into the app

Does anyone know how to find out if a user is logged in to vkontakte? Regardless of whether he entered the application or not, for example, when he first entered the site.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
javenue, 2011-03-07
@javenue

Yes, VKontakte originally had 2. As far as I understand, the third has not yet been added.
The only option I see is to parse the html and define it that way. There are, however, some restrictions, but in principle it is feasible.

R
Robotex, 2011-03-07
@Robotex

Which app? In contact with? Or on your website?
Create an iframe pointing to VKontakte. If he redirected, then he is logged in, if not, then he is not logged in (check the location, you will also find out the id)

M
Maxim Vyaznikov, 2019-02-06
@ha7y

Already added:
https://vk.com/dev/openapi?f=3.4.%20VK.Auth.getLog...
5c5aa75342ab7798690799.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question