I am writing reply processing using the statuses / update API,
It is displayed in both “Tweet Screen” and “Tweet and Reply Screen”.
Originally, I want you to display only “Tweet and Reply screen”.
How do you display “Tweets and Reply screens” only?
The post code is as follows.
Please teach.
statuses/update APIを使って返信処理を書いているのですが、
「ツイート画面」と「ツイートと返信画面」両方に表示されます。
本来は、「ツイートと返信画面」のみに表示して欲しいです。
どのようにすれば、「ツイートと返信画面」のみの表示になるのでしょうか?
postコードは、下記となっております。
ご教授ください。
public function post($status, $media_id = null, $in_reply_to_status_id = null) {
$opt = array('status'=>$status);
if (isset($media_id)) {
$opt['media_ids'] = $media_id;
}
if ($in_reply_to_status_id) {
$opt['in_reply_to_status_id'] = $in_reply_to_status_id;
$opt['auto_populate_reply_metadata'] = true;
$opt['tweet_mode'] = "extended";
}
$to = new TwistOAuth(TCK, TCS, TAT, TATS);
$req = $to->post('statuses/update', $opt);
if (!$req) {
Twitter_lib::debug_print(__METHOD__, "post is NULL");
}
return json_decode(json_encode($req), true);
}