/** * @param $id * * @return bool */ public function deletePost($id) { $userAttributes = $this->service->getUserAttributes(); $response = $this->service->api('wall.delete', 'GET', ['owner_id' => $userAttributes['id'], 'post_id' => $id]); return $response['response'] == 1; }