hi i am using code below …
$toa = new TwitterOAuth(’***************’, ‘************’, ‘************’, ‘******************’);
$toa->host = “https://api.twitter.com/1.1/”;
$image = ‘http://localhost/fb_tweety/files/liketwitty.png’;
$ret = $toa->post(‘statuses/update_with_media’, array(‘status’ => ‘Test message1’, ‘media[]’ => ‘@’.realpath(($image))));
echo json_encode($ret) . “
\n”;
but getting following error:
{“errors”:[{“code”:195,“message”:“Missing or invalid url parameter.”}]}
please help me…