I
I
Ivan Ivanov2018-05-22 23:01:43
In contact with
Ivan Ivanov, 2018-05-22 23:01:43

Has the vk api photos.get method started requiring authorization for a long time?

I used to do this:
https://api.vk.com/method/photos.get?owner_id=1&al...
And everything worked, now - the error
"User authorization failed: no access_token passed."
Now without authorization in any way?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bkosun, 2018-05-22
@romalu

From April 2017, the service access key is required to work with these methods (not including methods of the secure section):
newsfeed.search
wall.search
From May 2018, the service access key is required to work with these methods:
users.get
wall.getComments
friends.get
groups.getMembers
likes.getList
From May 14, 2018, the service access key is required to work with all methods.

https://vk.com/dev/service_token

A
Arthur, 2018-06-02
@idxren

So how did you solve the issue? I used the service key from the application, and it returned this

vk.exceptions.VkAPIError: 28. Application authorization failed: method is unavailable with service token.. request_params = {'oauth': '1', 'method': 'messages.send', 'v': '5.67', 'user_id': '29353463', 'message': "Ты долбаеб,мудила. Напиши 'помощь', чтобы узнать мои команды", 'attachment': ''}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question