update_with_media---i am getting error : Error creating status


I’m trying to update a status with a picture. But I keep getting below error:
stdClass Object ( [request] => /1/statuses/update_with_media.json [error] => Error creating status. )

Below the code i am using to update a status with picture:
include “twitteroauth.php”;

$consumerKey = “XXXXXXXXXXXXXXXX”;

$randommsgString=“Twitter auto post test”;
$image = ‘logo.png’;
$twitteroauth = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret);
$twitter_res = $twitteroauth->post(‘statuses/update_with_media’, array(‘media[]’=> “@{$image}”,‘status’=> $randommsgString));

Please provide me the valid solution for this.


i have the same pb :

$code = $tmhOAuth->request('POST', 'https://upload.twitter.com/1.1/statuses/update_with_media.json', array( 'media[]' => '@{$image}', 'status' => $message ) );

Error response :
stdClass Object ( [request] => /1/statuses/update_with_media.json [error] => Error creating status. )


i have the same pb. Any solution or advice ?


i am facing the same issue any one resolved it?


me too fellas, any solutions?


Try change

v1.1 have a different link as you can see it here: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media