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”;
$consumerSecret =“XXXXXXXXXXXXXXXXXXX”;
$randommsgString=“Twitter auto post test”;
$accessToken=“XXXXXXXXXXXXX”;
$accessTokenSecret=“XXXXXXXXXXXXXXXXX”;
$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?
zicofm
#6