Answer the question
In order to leave comments, you need to log in
method wall.getById how to get display?
<?php
$records_json=file_get_contents("https://api.vk.com/method/wall.getById?posts=-89869543_17797&extended=0&v=5.60");
$records=json_decode($records_json, true);
foreach($records['response'] as $record) {
echo "<li id='".$record['id']."'>".$record['text']."";
if (isset($record['attachment']['photo']['src_big']))
echo "<p><img src='".$record['response'][0]['photo_604']."'></p>";
echo "</li>";
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question