Hi, i am trying to send a tweet on behalf of a user, but the problem is i cannot send anything after the page i authenticate (my code for sending tweets is on another page, after i have succesfully authenticated the user ).
$twitteroauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION[‘oauth_token’], $_SESSION[‘oauth_token_secret’]);
on the page i want to send messages so that i could use
$twitteroauth->post(‘statuses/update’, array(‘status’ => $message));
, but i got an “Could not authenticate you” error. all the 4 parameters get passed to this page correctly.
i have no idea what causes the error; is it because i am trying to authenticate the user again while he/she is still logged in? if so what should i do?
Thanks for looking.