Catch webintents "successful like" event

javascript
webintent

#1

Hi,

I integrated my anguklarjs webapp with webintents:

  1. I put <script id="twitter-wjs" src="//platform.twitter.com/widgets.js"></script> in my head section

  2. I created this kind of markup: <a href="https://twitter.com/intent/like?tweet_id={{campaign.object.id}}">interact</a>

  3. I put this javascript

     twttr.ready(
        function (twttr) {
            twttr.events.bind('like', function(event) {
                       var likedTweetId = event.data.tweet_id;
                       alert(likedTweetId);
             });
    

    });

Then I get two issues:

  1. On click event on the html markup, I get an alert with undefined
  2. After interaciont is done, I don’t get any event

Here is a demo (although in this code there isn’t the first issue)

Demo

What am I missing?


#2

This event is no more available:

Thanks anyway


#3