Answer the question
In order to leave comments, you need to log in
Twitter: Tweet track / Content per tweet?
Good afternoon, dear ones :)
We offer users the opportunity to tweet a link to our wonderful site by
opening the URL in the popup: “ twitter.com/intent/tweet?original_referer=localhos... ”
Tell me - is it possible to determine whether the user really made a tweet or just closed the window.
I would be extremely grateful for any link to an article on the issue of "PayWithATweet" - give the user content only after a certain tweet.
Answer the question
In order to leave comments, you need to log in
you need to check the user's feed. As an example - an add-on for wordpress (support g+, twitter, facebook).
Perhaps a free solution from Cloudflood will suit you .
dev.twitter.com/docs/intents/events
You need to attach your own function to the tweet event, like:
<a href="https://twitter.com/share" class="twitter-share-button" data-via="mr_roose" data-lang="ru">Твитнуть</a>
<script type="text/javascript">
window.twttr = (function (d,s,id) {
var t, js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; js=d.createElement(s); js.id=id;
js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
}(document, "script", "twitter-wjs"));
function tweet_dl(intent_event) {
console.log('тадам!!!'); //ну или что-то типа этого.
}
twttr.ready(function (twttr) {
twttr.events.bind('tweet', tweet_dl);
});
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question