W
W
Whitesunset2017-04-20 00:42:42
In contact with
Whitesunset, 2017-04-20 00:42:42

VK API groups.setCallbackServer not working?

There is a method groups.setCallbackServer
Allows you to specify a server for CallbackAPI
My server returns the desired string.
When I manually set the URL through the group settings page in VK, everything works.
When I try to install the server programmatically, pulling the method, I get it all the time . Based on the method documentation, this means "the server returned an incorrect response." Does anyone know what is the reason? How to understand what exactly the server returns at this moment?
{"response":{"state_code":3,"state":"incorrect"}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2017-04-20
@Whitesunset

state_code=3, state="incorrect" — the server returned an invalid response.
Do you get the string that is the server confirmation from api ( https://vk.com/dev/groups.getCallbackConfirmationCode )? These lines are different for installation from api and from the VK interface.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question