mardi 24 mars 2015

twitter follow in intent fires as tweet


Vote count:

0




I'm trying to catch twitter events on my Website with the widgets.js from twitter


I have an link to to call a twitter intent and there I can tweet and it catches this event right as tweet. After the tweet is finished twitter suggest that i can follow the user but when I click on follow the tweet event is fired again.


A jsfiddle which demonstrates this behavior http://ift.tt/1Cm4fKc



twttr.events.bind('tweet', function(e){alert("tweet")});
twttr.events.bind('follow', function(e){alert("follow")});

$(function(){
var url = [];
url.push("http://ift.tt/RWhY5Y");
url.push("?url=");
url.push(encodeURIComponent("http://example.com"));
url.push("&text=");
url.push(encodeURIComponent("Lorem Ipsum"));
url.push(encodeURIComponent(" (via @foobar)"));
url.push("&hashtags=");
url.push("foo,bar");
url.push("&related=");
url.push("foobar");
$("#tweet").attr("href",url.join(""));
});


asked 24 secs ago

L.A

18






twitter follow in intent fires as tweet

Aucun commentaire:

Enregistrer un commentaire