Reputation: 5413
I'm having some issues with attaching a callback to a tweet.
I have a link:
<a id="shareLink" href="https://twitter.com/intent/tweet">Tweet</a>
First, I get this error in Firebug, simply from loading widget.js:
uncaught exception: Error: Permission denied for
<http://platform.twitter.com> to get property Proxy.InstallTrigger
Regardless, it does do the pop up, and tweets, successfully.
Moving on, I add this code:
twttr.events.bind('tweet', function(event) {});alert('YES');
Now everything breaks. In Firebug I get this:
a is null
With a reference to the first line of widget.js
(function(a,b){function s(a){for(var b...cument.body.firstChild);return c})});
What the hell? What am I doing wrong here?
Upvotes: 0
Views: 1195
Reputation: 5413
This is actually a Twitter bug. See this thread:
https://dev.twitter.com/discussions/4315
Sounds like it should be fixed soon.
Upvotes: 2