Answer the question
In order to leave comments, you need to log in
Wall.get php VK API, how to display an image?
Hello everyone, I ran into the problem of attachments, I can’t figure out how to find out if there is an attached file in the json response,
that is, the request itself
$msg = json_decode(file_get_contents("http://api.vk.com/method/wall.get?domain=domain&count=100&v=5.3"), false);
$msg = $msg->response->items;
if(!$msg[0]->attachments)
//или как ?
Answer the question
In order to leave comments, you need to log in
Well, look at what is returned to you, var_dump to help, what is the question then?
https://vk.com/dev/wall.get
https://vk.com/dev/post
https://vk.com/dev/attachments_w
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question