K
K
Khurshed Abdujalil2018-07-03 10:05:40
PHP
Khurshed Abdujalil, 2018-07-03 10:05:40

Why does VK posting not work, although there are rights?

Created stand alone app with photos,wall,groups,offline permissions. Posting to group does not work Posting
code:

$token = new \VKApi\VkAccessToken($vk_token);
if (!$token->check()) {
    echo 'Invalid token';
    exit;
} else { 
    $vk = new \VKApi\VkApi($token);
    $param = new \VKApi\VkParams([
        "owner_id" => -$social_group,
        "message" => $text,
        "from_group" => 1
    ]);
    $request = $vk->createRequest("wall.post", $param);
}

but the wall.get method works correctly
with wall.post
[error_code] => 15
[error_msg] => Access denied: no access to call this method

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question