I
I
ianton2014-07-31 16:51:56
In contact with
ianton, 2014-07-31 16:51:56

How to place a post on the Vkontakte wall using Vkontakte OpenAPI using the POST method?

When using VK.Api.call("wall.post".....) message is sent in the query string, which limits the length of the message.
Tell me, please, how can I send messages to the wall using POST via OpenAPI?
The application is used on the server, respectively registered as a Website.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2018-10-18
@sergiks

Through OpenApi, which https://vk.com/js/api/openapi.js?159is  no way . GET method is registered there and is not configured. For cross-domain requests, the response is loaded via JSONP by including the script in the body of the document, where all request parameters go in its address with the same GET parameters. See the source of the above script, line 554 method makeRequest()and line 605 method attachScript()
From the server (Node.js?) it should not be a problem to POST the request to

https://api.vk.com/method/METHOD_NAME?PARAMETERS&access_token=ACCESS_TOKEN&v=V
as described in the documentation . True, when you call wall.post(), a confirmation window opens and everything is designed for the user's browser. How did you complete requests before and not encounter a captcha or confirmation window requirement?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question