Answer the question
In order to leave comments, you need to log in
How to get a user token to work with the VK API?
I want to know the answers to 2 questions.
1. When the user has entered his login and password from the account, how to get his token using php?
2. If the user is redirected to such a link ( https://oauth.vk.com/authorize?client_id=3166113&s... ) HE will click "ALLOW" how to get a token using php? That is, so that the user does not copy the token manually.
Answer the question
In order to leave comments, you need to log in
1. According to the login-password, authorization is generally prohibited in the rules, if I'm not mistaken. Yes, and I myself would not give the login-password to some left site.
2. By means of PHP in any way. Only add an input, in which the user will enter his hash from the address bar, and then receive a token. This is how delayed posting sites work, and there is no other way.
The answer is no. This is done on purpose so that sites do not post to the user's feed.
I would like to send you a link https://vk.com/dev - but the site is down. =D
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question