SIG Vkontakte how to?

Trying to send a request by noHttps Vkontakte, the Scripture is necessary to generate a sig for an hour I don't understand
what am I doing wrong?
VC returns: User authorization failed: param sig is incorrect
$access_token = "xxxx";
$group_id = "xxxx";
$text = urlencode($data["#hello drugs!"]);
$post = "".$group_id."friends_only=0from_group=1message=".$text."signed=0access_token=".$access_token."v=5.52".$secret;
$sig = md5($post);
$sRequest = "".$group_id."&friends_only=0&from_group=1&message=".$text."&signed=0&access_token=".$access_token."&v=5.52&sig=".$sig;
$oResponce = json_decode(file_get_contents($sRequest));
July 9th 19 at 13:03
2 answers
July 9th 19 at 13:05
1. You did not read carefully the documentation on the no http.

If, however, to read the documentation, it is clear that the query string has the following form:
/method/{method Name}?{GET parameters}{POST settings}

You have the same variable $post is not of this kind, as specified in the documentation.

2. This whole question was asked about how to make a request via http, but in the example of your code you still make a request to https, where is the logic?
I understand it should be: $sig = md5(/method/{}?{owner_id=-".$group_id."friends_only=0from_group=1message=".$text."signed=0access_token=".$access_token."v=5.52".$secret}{secret}); - judy_Johns commented on July 9th 19 at 13:08
July 9th 19 at 13:07
But this option really necessary?
I don't see it in the documentation to this method.
Need carefully read the question. - judy_Johns commented on July 9th 19 at 13:10

Find more questions by tags PHPVKontakte