Hi everyone,
I have succeed to connect people on my site to Twitter with the following code :
$to = new TwitterOAuth($consumer_key, $consumer_secret, $_SESSION[‘access_key’], $_SESSION[‘access_secret’]);
$content = $to->get(‘account/verify_credentials’);
Now, I try to do : people can send tweets by my website, but it doesn’t work, I don’t understand why… 
I have an error when I do a echo $response->error; :
Client must provide a ‘status’ parameter with a value.
Here is my code :
$to = new TwitterOAuth($_SESSION[‘consumer_key’], $_SESSION[‘consumer_secret’], $_SESSION[‘access_key’], $_SESSION[‘access_secret’]);
$response = $to->OAuthRequest(‘https://twitter.com/statuses/update.xml’, array(‘status’ => $message,‘in_reply_to_status_id’ => $in_reply_to_status_id), ‘POST’) ;
I have tried :
$response = $to->post(‘statuses/update’,array(‘status’ => $message,‘in_reply_to_status_id’ => $in_reply_to_status_id)) ;
or
$response = $to->post(‘statuses/update’,array(‘status’ => $message)) ;
but it doesn’t work…
Do you have an idea why ? pleaseeee.
PS : Sessions are working well (for example : $_SESSION[‘consumer_key’], $_SESSION[‘consumer_secret’], $_SESSION[‘access_key’], $_SESSION[‘access_secret’] are not empty)…
Thanks !