M
M
Messi2017-05-01 09:45:04
Yii
Messi, 2017-05-01 09:45:04

How to resolve the "no access_token passed" error?

1. Created vk developers app.
2. Added registration \ authorization through Yii2 AuthClient (vk)
3. I want users (guest) to show data about the vk group.
4. I make a request to the VK api for groups and get 'User authorization failed: no access_token passed.'
5. In the Yii settings, I specified the secret code of the application.
How to solve this problem? I read about how to get an access token vk, but as I understand it, you need to log in every time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-05-02
@FitTech

I make a request to the VK api for groups and get

At this stage, it is already clear that yii has nothing to do with the question. And the matter is exclusively in vk api.
The error is unequivocal, you did not send an access_token or did it incorrectly
"secret code" is not equal to "access_token" Read here>>>

S
Sergey Sokolov, 2017-05-01
@sergiks

Perhaps you are pulling API methods, access to which began to require a service access key since April.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question