无法检索 expanded_url - twitteroauth / twitter api

Cannot retrieving the expanded_url - twitteroauth / twitter api

无法从此推文中获取 expanded_url -> https://twitter.com/i/web/status/1297715123360915457, 但在这里工作正常 -> https://twitter.com/i/web/status/1298033841374822400

我使用的是 abraham/twitteroauth 1.2.0 版本,也尝试过 1.1.0 和 2.0.1。 仍然没有检索到 expanded_url.

use Abraham\TwitterOAuth\TwitterOAuth;

$connection = new TwitterOAuth(
    TW_KEY,
    TW_SECRET,
    TW_TOKEN,
    TW_TOKEN_SECRET
);

$tweetResult = $connection->get(
  "statuses/show",
  [
    'id'    => '1298033841374822400', "tweet_mode" => "extended"
    //'id'    => '1297715123360915457', "tweet_mode" => "extended"
  ]
);
var_dump($tweetResult->entities->urls);

1298033841374822400的结果:

array(1) { [0]=> object(stdClass)#11 (4) { ["url"]=> string(23) "the short URL" ["expanded_url"]=> string(53) "https://contest.mdpr.jp/mrcon202003/gal/taiki06191148" ["display_url"]=> string(33) "contest.mdpr.jp/mrcon202003/ga…" ["indices"]=> array(2) { [0]=> int(67) [1]=> int(90) } } }

1297715123360915457

的结果
array(0) { }

第二条推文是转推,所以网址在

$tweetResult->retweeted_status->entities->urls