【问题标题】:Twitter "Tweet" button not workingTwitter“推文”按钮不起作用
【发布时间】:2017-06-25 17:14:53
【问题描述】:

这个问题让我难过了一阵子。 我在 CodePen 中有以下代码:

<a class="twitter-share-button color-change"
  href="https://twitter.com/share" target="_blank"
  data-size="large"
  data-text="Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it's the only thing that ever has. - Margaret Mead"
  data-hashtags="RuairiMcN">
<i id="twitter" class="fa fa-twitter-square fa-3x" aria-hidden="true"></i></a>

这是一个 Twitter 分享按钮,它应该会打开一个 Twitter 页面,您可以在其中使用“数据文本”的内容发布推文。但是,如果您关注它,则 Tweet 框会填充不同的内容: "https://s.codepen.io/boomerang/iFrameKey-b5c36245-7638-5a23-0a1b-4b5fab51692a/index.html"

不知道这是从哪里来的。从 Twitter Dev 区域重新读取此按钮的参数,但没有成功。

【问题讨论】:

    标签: html twitter


    【解决方案1】:

    您可能没有正确加载 Twitter 小部件 Javascript。 (这是“How to add a Tweet button to your website”中的第 4 步。)在没有加载 Javascript 的情况下,Twitter 拥有的唯一信息是引荐来源 - 在这种情况下,这是 Codepen 内部的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-17
      • 1970-01-01
      • 2012-09-03
      • 2012-04-09
      • 2011-09-02
      • 1970-01-01
      • 2015-11-08
      • 1970-01-01
      相关资源
      最近更新 更多