Bug with uploading status with media


#1

I am successfully able to post a media object and I am getting back an id. when trying to post a status update with the respective media_ids, its giving me a bad request. What could be the cause of the problem?

Media Upload Result:

object(stdClass)#16 (4) {
  ["media_id"]=>
  int(535153977458167809)
  ["media_id_string"]=>
  string(18) "535153977458167809"
  ["size"]=>
  int(3217011)
  ["image"]=>
  object(stdClass)#17 (3) {
    ["w"]=>
    int(1600)
    ["h"]=>
    int(1200)
    ["image_type"]=>
    string(9) "image/png"
  }
}

Status Update Parameters:

array(6) {
  ["media_ids"]=>
  string(18) "535153977458167809"
  ["status"]=>
  string(4) "test"
}

Status Update Failed Result:

array(1) {
  ["errors"]=>
  array(1) {
    [0]=>
    object(stdClass)#13 (2) {
      ["code"]=>
      int(214)
      ["message"]=>
      string(12) "Bad request."
    }
  }
}

#2

(moving to the REST category as this does not appear to be OAuth related)

Error 214 typically would mean that your image was not valid, or that the media ids you provided were not valid. We’re working to improve the response message you’d get back in this case, and to document the error codes more fully.

It looks like you are using a PHP library? are other users of the same library having greater success with this API?