K
K
KiriKiri2011-02-27 19:07:09
In contact with
KiriKiri, 2011-02-27 19:07:09

Working with the VKontakte API from an AIR application?

At the moment I am writing an AIR application that would work with the Vkontakte API.
Wrote a wrapper for the API in syntax the same as the API for flash applications, only working from desktop applications.
The only question that remained unresolved was how to log out of the user account.
The documentation for the API says only how to log in:
vkontakte.ru/developers.php?id=-1_21239305&s=1
But I didn’t find how to log out of the account, I had to try by typing.
I go to this address:
vkontakte.ru/logout.php?app=app_id&layout=touch&se...
But for some reason, when I go to vkontakte.ru/login.php after this request , instead of showing me the authorization form re-authorize.
Perhaps you have encountered such a problem, or am I doing something wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Riateche, 2011-02-27
@Riateche

And that's not really your area of ​​expertise. If the user wants to log out of the account, he will do it through the browser. Within your application, it is enough to forget the sid to end the session.
Why do you logout at all? What goal do you want to achieve?

R
Riateche, 2011-02-27
@Riateche

> the data is transferred to the javascript on the vkontakte page
And where do you have the javascript then executed if you don’t have a browser anywhere?
The normal authorization process, which is described by reference, assumes that a frame with a browser window is created inside the application, with which the application interacts via url. Apparently, the specifics of an AIR application does not allow you to embed a browser window in it, otherwise you would have done it as in the docks and did not bother.
Therefore, tell me honestly: how do you transfer the generated link to the VKontakte server, how does the contact server receive the user's consent, and how do you get the link with the hash anchor generated by the contact? If you don't have a browser anywhere, then you have to do all this yourself through http requests. This is what I asked you in my previous comment.

K
KiriKiri, 2011-02-27
@KiriKiri

No, you don't understand, there is a frame with a browser. He is hidden. The user does not see it. Sorry if I didn't express myself correctly.
It's just that the page to which VKontakte redirects is not an ordinary page. There is no exit button.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question