tweet按钮不会出现
我试图在html页面上添加一个tweet按钮,我使用twitter按钮生成器的官方代码
http://twitter.com/about/resources/buttons#tweet
I'm trying to add a tweet button to html page , I use the official code from the twitter button generator , http://twitter.com/about/resources/buttons#tweet
当我在Chrome上测试页面时, Firefox,按钮没有出现,只有带下划线的文字说:Tweet
when I test the page on chrome and Firefox , the button doesn't appear , only an underlined text says : "Tweet"
这里是代码:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.3eesho.com/magazine/index.html" data-text="issue2 now" data-via="3eesho" data-hashtags="ipad,health,arabicmagazine">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</body>
</html>
我遇到了同样的问题,直到我缩小到可能被阻止的曲奇。我从 https://disconnect.me/ 运行了一个名为Disconnect的附加组件。一旦我禁用了这个插件并重新启动了浏览器,Tweet按钮又开始工作了。
I had this same problem, and it drove me nuts until I narrowed it down to cookies possibly being blocked. I was running an Add-On called 'Disconnect' from https://disconnect.me/ . Once I disabled this addon and restarted the browser the Tweet button started working again.
因此,如果您使用该插件或任何其他插件来阻止Cookie或阻止您被社交网站跟踪,如果你想看到鸣叫按钮,你需要禁用它。
So if you're using that addon or any other one to block cookies or prevent you from being tracked by social networking sites, you'll need to disable it if you want to see the tweet button.