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
when I test the page on chrome and Firefox , the button doesn't appear , only an underlined text says : "Tweet"
here is the code :
<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>
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.
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.
I just noticed that I duplicated @jcaruso's reply.
tl;dr;
Try disabling ad-blocking extensions. For me the problems were caused by disconnect.me
extension.
How I found that out? I noticed in the chrome dev console, that request to twitter to load widgets.js
gets a 307 redirect to about:blank
.
Thanks to that answer I figured out that it's caused by one of the extensions. Disabling the disconnect.me
extension fix the problem with twitter and facebook buttons on mine and other pages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With