我需要回复一个特定的 Twitter 状态。我正在使用以下功能。我在 php 中使用了 Abraham 的 twitteroauth 库。
public function  replyToTwitterStatus($user_id,$status_id,$twitt_reply,$account_name)
{                       
       $connection= $this->getTwitterConnection($user_id,$account_name);                
        try{
           $responce = $this->postApiData('statuses/update', array('status' => $twitt_reply,'in_reply_to_status_id '=> $status_id),$connection);
        }
        catch(Exception $e){
            echo $message = $e->getMessage();
            exit;                  
        }             
}
// this function will handle all post requests
// To post/update twitter data
// To post/update twitter data
public function postApiData($request,$params = array(),$connection)
{         
    if($params == null)
    {
        $data = $connection->post($request);    
    }
    else
    {       
        $data = $connection->post($request,$params);
    }
    // Need to check the error code for post method      
    if($data->errors['0']->code == '88' || $data->errors['0']->message == 'Rate limit exceeded')
    {
        throw new Exception( 'Sorry for the inconvenience,Please wait for minimum 15 mins. You exceeded the rate limit');
    }
    else
    {
        return $data;
    }                  
}
但问题是它没有维护对话视图,它像正常状态一样更新,例如@abraham hello you how are you。但“查看对话”不会到来。像扩展菜单不来。
请做必要的谢谢