P
P
Pagus2017-02-07 01:30:42
PHP
Pagus, 2017-02-07 01:30:42

How to use VK API namely board.createComment via PHP?

Greetings!
I want to automate the placement of a comment in several discussions of my group by means of sending a form from my site, where the group ID, discussion and the text itself will be indicated.
I took as a basis/instruction: https://habrahabr.ru/post/265563/
Created a standalone, used the application ID, got a token, but the result can not be overcome:
"error":{"error_code":15,"error_msg": "Access denied: no access to call this method","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"board .createComment"},{"key":"group_id","value":"group_id"},{"key":"topic_id","
_api.vk.com/method/board.createComment?group_id=group_id&topic_id=discussion_id&message=test_message&v=5.62&access_token=3e55...ab9d0
Please tell me how this request is made, I don't make friends with the API myself.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kpa6uu, 2017-02-07
@Pagus

"no access to call this method" as if hint)))
When receiving a token, the necessary rights are indicated. You need to add the desired one(s).

P
Pagus, 2017-02-10
@Pagus

That's right - I did not give the correct access rights, I redid it again carefully - everything turned out!)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question