I
I
ibr_982018-02-09 01:13:22
PHP
ibr_98, 2018-02-09 01:13:22

Not sending vk api message?

can you tell me where is the mistake?

<?php 
  $premission = [
    "messages", "status", "wall", "friends", "photos"
  ];
  $send_message = [
    "user_id" => "170773651",
    "message" => "test",
    "access_token" => "...",
    "v" => '5.71'
  ];
  $url = 'https://api.vk.com/method/messages.send?' . http_build_query($send_message);
 ?>
(на компе стоит open server)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alibek Issakul, 2018-02-09
@Alibek-kz

how did you get the access_token?
Works only through Implicit Flow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question