D
D
daf234za2020-07-14 10:11:31
API
daf234za, 2020-07-14 10:11:31

Can't access VK api method?

I call this method:

https://api.vk.com/method/friends.add?user_id=$id&follow=0&text=&access_token=$t&v=5.120

id & token are replaced by variables. Answer:
{"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"user_id","value":"********"},{"key":"follow","value":"0"},{"key":"text","value":""},{"key":"v","value":"5.120"},{"key":"method","value":"friends.add"},{"key":"oauth","value":"1"}]}}

I release the token through Implicit Flow with the Friends parameter:
https://oauth.vk.com/authorize?client_id=huisasi&redirect_uri=https://devnow.ca/app.php&display=popup&response_type=token&scope=friends,offline

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2020-07-14
@cr1gger

Get a different token in scope specify: friends

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question