V
V
vas19012014-07-27 19:30:47
PHP
vas1901, 2014-07-27 19:30:47

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

4 answer(s)
V
Vadim Klimenko, 2014-07-27
@vas1901

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.

D
Dmitry Entelis, 2014-07-27
@DmitriyEntelis

The answer is no. This is done on purpose so that sites do not post to the user's feed.

D
Danil Repin, 2015-05-06
@xxxpabloxxx

Click here))

M
Mikhail Osher, 2014-07-27
@miraage

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 question

Ask a Question

731 491 924 answers to any question