H
H
homm2011-06-10 15:15:53
API
homm, 2011-06-10 15:15:53

Vkontakte Open API not working?

There is a registered application in the form of an external site.
If the user was initially logged in to VKontakte, then the request to add an application on the site (VK.Auth.login), the application is not added to the user, and {session: null, status: 'unknown'} is passed to the VK.Auth.login function callback. If the user was not originally logged in to VKontakte, after the login the application is added, the session is transferred to the page, i.e. everything is working.
On the demo site durov.at/ , the opposite is true. Logged in users easily add an application to themselves, and the login window is not even shown to unlogged users.
Does anyone have the same problems? What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
homm, 2011-06-10
@homm

I seem to have figured out what. Previously, calling VK.Auth.login(function(){}) implied that you were asking to add the application to yourself, and by default, the rule "Allow the application to send you notifications" was also added. Now, apparently, the default has been removed, and at least one permission must be explicitly specified. Those. the equivalent of the old call is now VK.Auth.login(function(){}, 1).

B
bunya, 2011-10-06
@bunya

Thanks, your post helped a lot!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question