Reply Tweet



im tried to reply multiple tweet at the same time , but the it`s reply only one tweet


	$consumer_key = "8jxxxxxxxxxxxxxxA13k";
	$consumer_secret = "f6UxxxxxxxxxxxxxxPKJC";
	$access_token = "758xxxxxxxxxxxxxx833o";
	$access_token_secret = "XFa4iKxxxxxxxxxxxxxGJqD";

	$connection = new TwitterOAuth($consumer_key,$consumer_secret,$access_token,$access_token_secret);

	$statuses = $connection->get('statuses/home_timeline', array( 'count' => 10 , 'exclude_replies' => true));
	foreach($statuses as $status) { // records the id of the tweet just sent
	    $status_id  = $status->id_str; // SHOULD return the id of the last tweet

	    $responce = $connection->post('statuses/update', array('in_reply_to_status_id'=> $status_id, 'status' =>	"@".$memberUsername." ".$message));

Reply multiple tweets

First go to and regenerate your consumer key/secret. You want to keep the secrets secret and not post them to public forums.

As your code is currently posted, this is what you are attempting to tweet for every status in the array: 'status' => "@".$memberUsername." ".$message. In that current setup the first status will result in a tweet and then every following attempt to post a status will fail because of duplicate content. Twitter has restrictions on not posting the same text twice in a row.