【问题标题】:Twitter Web Intent returns "Sorry, that page doesn't exist!" error for a site that existsTwitter Web Intent 返回“抱歉,该页面不存在!”存在的站点的错误
【发布时间】:2016-07-21 06:19:34
【问题描述】:

只是想在我的网站上添加一个基本的 twitter 分享按钮。我想让用户在推特上发布指向 SoundCloud 页面的链接。我关注this tutorial 构建简单的社交媒体按钮。 Twitter 返回“抱歉,该页面不存在!”错误。

分享网站:https://soundcloud.com/thegrindwithkevin/011-postmortem-team-eve-61816
网址编码:https%3A%2F%2Fsoundcloud.com%2Fthegrindwithkevin%2F011-postmortem-team-eve-61816

HTML 链接代码:

<a className="custom-share-button" href="https://twitter.com/intent/tweet/
           ?text=Check%20out%20this%20podcast!
           &url=https%3A%2F%2Fsoundcloud.com%2Fthegrindwithkevin%2F011-postmortem-team-eve-61816
           &via=thegrindwithkev"
         target="_blank">Share on Twitter</a>

提前为超基本问题道歉。

【问题讨论】:

    标签: twitter urlencode


    【解决方案1】:

    嗯,答案和问题一样令人尴尬:Twitter 不喜欢 URL 字符串中的(隐藏的)换行符。现在一切都好。

    【讨论】:

      猜你喜欢
      • 2014-03-10
      • 1970-01-01
      • 2012-10-06
      • 2015-06-24
      • 2017-12-12
      • 2015-04-22
      • 2023-02-20
      • 2016-02-26
      • 2012-10-13
      相关资源
      最近更新 更多