javascript - Twitter 图片未出现在 WordPress 网站的推文中
问题描述
我正在创建一个 WordPress 插件,在其中添加点击推文功能以获取报价。以下是来自http://www.msblogs.mattjennings.net/2018/05/21/another-example-quote/的示例 HTML 代码
<a style="text-decoration: none;" onclick="window.open('https://twitter.com/intent/tweet?text=You%20must%20be%20the%20change%20that%20you%20wish%20to%20see%20in%20the%20world.%20%23gandi%20http://www.msblogs.mattjennings.net/2018/05/21/another-example-quote', '_blank', 'width=500,height=500'); return false;" href="#">
<blockquote>
<span class="dashicons dashicons-format-quote" style="color: #1da1f2; font-size: 45px; padding-right: 65px; display: block; float: left; height: 50px;"></span>
<p style="display: inline; padding-top: 10px; font-size: 25px; font-style: normal; color: rgb(0, 0, 0);" onmouseover="this.style.color='#1da1f2'" onmouseout="this.style.color='#000'">You must be the change that you wish to see in the world.</p>
<p style="color: #1da1f2; font-style: normal; padding-left: 65px;"><i class="dashicons dashicons-twitter" style="color: #1da1f2; font-size: 25px; display: block; float: left; padding-right: 30px;"></i>Click to Tweet</p>
</blockquote>
</a>
在同一页面上,我也有一个<meta name="twitter:image" content="http://www.msblogs.mattjennings.net/wp-content/uploads/2018/05/gandi-quote.png" />
标签。
但是,当我单击该页面上的“点击推文”链接并推文时,<meta name="twitter:image" ... />
标签中的照片不会出现在推文中:
https ://twitter.com/iluvmibanh/status/998709839936217088
我怎样才能让这张图片出现在推文中?
解决方案
照片(取自<meta name="twitter:image" ... />
标签)似乎需要几个小时才能与推文一起出现。谢谢你。
推荐阅读
- python - TensorFlow 基础文本分类练习
- json - 如何通过匹配 Flutter 中的 JSON 响应来获取特定的字段名称?
- c# - 该进程无法访问文件“C:\Users\Abyss\Desktop\Test\filename.txt”,因为它正被另一个进程使用
- codeigniter - 使用 Codeigniter 在 Datatable 插件中实现自定义过滤器
- javascript - JS(或浏览器)改变了我文件的编码,如何解决这个问题?
- multi-factor-authentication - 注册后,MFA 电话号码不会出现在令牌声明中
- accessibility - 网站可访问性,是否需要使用 Tab 键访问文本?
- angular - 请帮我解决这个错误 - “错误类型错误:无法读取未定义的属性'拆分'”
- r - 如何在写入文件之前定义行的顺序?
- npm - npx cypress open - 显示错误:EPERM: operation not allowed