Answer the question
In order to leave comments, you need to log in
How to get the ID of the current Vkontakte user?
How to get the ID of the user who is currently authorized in VK without using access_token? (For standalone applications).
Answer the question
In order to leave comments, you need to log in
If standalone - then no way, but if it opens a frame application - you can.
If you open the VK documentation, you can pay attention to:
When displaying an application using flashVars or a query string (for IFrame applications), the following parameters are passed to it:
api_url is the address of the API service to which requests should be made.
api_id is the id of the running application.
user_id is the id of the user from whose page the application was launched. If the application is not launched from the user's page, then the value is 0.
sid - session id for making requests to the API
secret - The secret required to sign requests to the API
group_id is the id of the group from the page of which the application was launched. If the application is not launched from the group page, then the value is 0.
viewer_idis the id of the user who is viewing the application.
and others - read more here
You need to execute users.get with a single access_token parameter. There, among other things, there will be uid.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question