Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
twitterapi返回tweet的链接,而tweet没有链接_Twitter_Twitter4j - Fatal编程技术网

twitterapi返回tweet的链接,而tweet没有链接

twitterapi返回tweet的链接,而tweet没有链接,twitter,twitter4j,Twitter,Twitter4j,我的时间线中有一条推文没有链接。当我通过twitter API检索我的推文时,它包含一个指向推文本身的链接,例如: "expanded_url": "https://twitter.com/i/web/status/<tweed-id>", “扩展url”:https://twitter.com/i/web/status/", 这是故意的行为吗? 我在twitter API文档中搜索了这个,但没有找到任何内容。如果您检查Tweet JSON,并且它包含字段截断:true,那么您需

我的时间线中有一条推文没有链接。当我通过twitter API检索我的推文时,它包含一个指向推文本身的链接,例如:

"expanded_url": "https://twitter.com/i/web/status/<tweed-id>",
“扩展url”:https://twitter.com/i/web/status/",
这是故意的行为吗?
我在twitter API文档中搜索了这个,但没有找到任何内容。

如果您检查Tweet JSON,并且它包含字段
截断:true
,那么您需要使用
Tweet\u mode=extended
参数来检索完整的Tweet对象。

哦,很有趣!那条推文(没有链接)被
截断:true
。而所有其他tweet(带有链接)都有
截断:false
。我会调查的!非常感谢。使用
tweet\u mode=extended
是解决方案(对我来说)!