Posting status update to https://api.twitter.com/1.1/statuses/update.json


#1

I already have a access token and I am able to access user friends, but I can’t get to post and status update.

I’m posting to https://api.twitter.com/1.1/statuses/update.json

But every time Im getting this error:

[message] => Sorry, that page does not exist

[code] => 34

Could I be doing it wrong, im using this code:

$connection = new \twitteroauth\TwitterOAuth(‘SXXXX’, ‘K99999’, $user->social->twitter_token, $user->social->twitter_tocken_secret);
$data = array();
$data[‘status’] = Input::get(‘message’);

	$response = $connection->post('statuses/update.json', $data);

#2

Make sure that TwitterOAuth is defaulting the version part of the path for you. It might be trying to reach api.twitter.com/statuses/update.json


#3

403: {“errors”:
[{“code”:226,“message”:“This
request looks like it might be
automated. To protect our users
from spam and other malicious
activity, we can’t complete this
action right now. Please try again
later.”}]}
https://api.twitter.com/1.1/
statuses/update.json


#4

403: {“errors”:
[{“code”:226,“message”:“This
request looks like it might be
automated. To protect our users
from spam and other malicious
activity, we can’t complete this
action right now. Please try again
later.”}]}
https://api.twitter.com/1.1/
statuses/update.json