Answer the question
In order to leave comments, you need to log in
Why does mediatopic.post throw NOT_FOUND: not.found.photouploadinglocal when trying to post a photo?
The sequence of actions is as follows:
$photoUrl = $client->call('photosV2.getUploadUrl', array('count' => 1));
{
"photos": {
"8y8CvT4Ix1m0ndfyI/qtCYrJ+pB43lXdSHvtCctVnrD6fwbvsDgbdA\u003d\u003d": {
"token": "gxglwv2vMn+Kew1TjKAAFBRpHiwHwxEUxPsSOuuwo1CQKovl95/eruQdEd+Ki5GhSpb2Aip3LPW2KSh1auD9PhJcV1o1f2dUHiUUxylc61sOR/UG02sGbthzwB0MBBqX"
}
}
}
$params = array(
'attachment' => json_encode($media),
'type' => 'GROUP_THEME',
'gid' => 53476453187693
);
$result = $client->call('mediatopic.post', $params);
{
"media": [
{
"type": "photo",
"list": [
{
"id": "gxglwv2vMn+Kew1TjKAAFBRpHiwHwxEUxPsSOuuwo1CQKovl95\/eruQdEd+Ki5GhSpb2Aip3LPW2KSh1auD9PhJcV1o1f2dUHiUUxylc61sOR\/UG02sGbthzwB0MBBqX"
}
]
}
]
}
Answer the question
In order to leave comments, you need to log in
Most likely, at the stage of obtaining the URL, the group ID is not indicated.
At the stage of obtaining a URL for uploading a photo, in the parameters, you must pass the ID of the group to which the post of the media topic will be made (you do not need to specify the album ID of "images from themes")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question