Twttr.events.bind('favorite'... + retweet dont work with Web Intents


#1

That code placed on the localhost:

<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<p><a href="https://twitter.com/intent/favorite?tweet_id=134363712235651073">Favorite</a></p>

<script type="text/javascript">
twttr.events.bind('favorite', function(event) {
    var favorited_tweet_id = event.data.tweet_id;
    alert('yes! favorite of: ' + favorited_tweet_id);
});
</script>

After popup appears:

  1. When u click first time Favorite - nothing happens (chrome + firefox)
  2. After second time content in popup changes and popup closes (chrome + firefox)
  3. Nothing happens (chrome + firefox)

So events twttr.events.bind dont work with “favorite” and “retweet”(same situation). Soo… is it bag or u r forgot delete that from api?)


#2

#3