我一直在努力编写链接,以便在Twitter上分享预先制作的推文 - 无论是在其中一个区块引用中,还是在一般网站上,可以找到http://bdnsun.ca/veteransdoc
。推特的链接适用于桌面,但当我尝试在我的iPhone上共享相同的链接时,它将我带到移动Twitter网站,没有预先发布的推文。有没有解决这个问题?
包含硬编码推文的示例,在这种情况下应该读取“All the streets were blocked off … we knew we was gonna get taken prisoner,” Elmer Cole, PoW survivor: http://bdnsun.ca/veteransdoc
<!-- Blockquote -->
<blockquote>
<p class="quote__text">“All the streets were blocked off and they wouldn’t evacuate us because we had to stay and keep the Germans off the beach. So we knew we was gonna get taken prisoner.” </p>
<div class="quote__person">
<p class="quote__name">Elmer Cole</p>
<p class="quote__title">South Saskatchewan Regiment</p>
</div>
<div class="quote__icon">
<a href="https://twitter.com/home?status=%E2%80%9CAll%20the%20streets%20were%20blocked%20off%20%E2%80%A6%20we%20knew%20we%20was%20gonna%20get%20taken%20prisoner,%E2%80%9D%20Elmer%20Cole,%20PoW%20survivor%3A%20http%3A//bdnsun.ca/veteransdoc" target="_blank" class="link--twitter"title="Share on Twitter"><span class="tooltip-toggle" data-tooltip="Tweet this quote"><i class="icon-twitter fa fa-twitter" aria-hidden="true"></i></span></a>
</div>
</blockquote>
答案 0 :(得分:3)
自推特updated its share link以来已经有一段时间了。现在有单独的text
和url
参数:
https://twitter.com/intent/tweet?text=text+to+share&url=https://example.org
专业提示:您还可以提供以逗号分隔的标签!
https://twitter.com/intent/tweet?hashtags=one,two,three&text=&url=