V
V
Vitaly2017-06-13 21:01:48
PHP
Vitaly, 2017-06-13 21:01:48

Why doesn't the groups.setCallbackServer method work?

The groups.setCallbackServer method does not work , it is needed to set the server address in the VK group. One of its required parameters is the code (the string that the server should return). The code can be obtained using the groups.getCallbackConfirmationCode method , but the developers of the VK API do not understand why they made this code different from what is in the settings in the group. But it is claimed that this code is used to confirm via the API (which is what I need). And when I try to create a request with this code, either state_code=3, state="incorrect" or state_code=4, state="failed" is returned to me, which means that the code is "not suitable". How, then, to set the server address without asking the user for a code from the group settings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2017-06-13
Ahen @Ahen

It's been working fine for me for half a year now.
Perhaps you shove this code into the request itself? It only needs to be mapped to the address you install, and the installation request specifies the same api key that was specified when requesting the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question