thekevinscott
thekevinscott

Reputation: 5413

Twitter Intent Callback

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

Answers (2)

thekevinscott
thekevinscott

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

Dana S
Dana S

Reputation: 21

It's a firebug issue. It appears to have been fixed in Firebug 1.9b2.

Upvotes: 2

Related Questions