R
R
Ruslan2016-01-22 21:54:21
Classmates
Ruslan, 2016-01-22 21:54:21

Mediatopic.post with picture - error 300 "NOT_FOUND: not.found.photouploadinglocal?

I get an error 300 "NOT_FOUND : not.found.photouploadinglocal" when sending mediatopic.post with a picture.
Step 1. I get a url to upload
. Step 2. I make a post request, specify the received link, the real path to the image file
. Step 3. I send mediatopic.post c parameters :

"application_key"=>публичный ключ
"attachment"=> {
  "media": [
    {
      "type": "photo",
      "list": [
        { "id": "photoToken1" }
      ]
    }
"format"=>"json",
"gid"=>id группы,
"method"=>"mediatopic.post",
"type"=>"GROUP_THEME"

On sig does not swear. Tell me what I'm doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2016-01-26
@yarus_kst_kz

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 question

Ask a Question

731 491 924 answers to any question