Twitter 推文或转推回调 [英] Twitter Tweet or ReTweet Callbacks

查看:61
本文介绍了Twitter 推文或转推回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望你过得愉快.我正在创建一个网站,当用户在 Twitter 上发布一个 wordpress 博客条目时,他们就会在网站上获得积分.

Hope you are having a good time. I am creating a website where when users Tweet a wordpress blog entry then they get points on the websites.

所以基本上,如果用户在他的 Twitter 上发布该条目,那么我们会给他一些积分以在网站上使用(而不是金钱).虽然这件事在 Facebook 上似乎是合理的,但在我所知的 Twitter 上却不是.

So basically, if a user Tweets that entry on his Twitter then we would give him some points to use on the website (not money). Although this thing is plausible with Facebook but not with Twitter in my knowledge.

我愿意通过 Twitter Tweet Button 或 TweetMeme Retweet Facility 尝试两种方式.但是,我在这两种情况下都找不到回调设施.

I am willing to try to both ways by Twitter Tweet Button or TweetMeme Retweet Facility. However, I could not find a facility for a callback at neither of these.

我正在 Facebook 中实现类似的功能,我可以使用 FBML JS SDK 看到隧道尽头的曙光.但是,如果 Twitter 可以实现类似的功能,那就太棒了.

I am implementing a similar functionality in Facebook and I can see the light at the end of the tunnel with using FBML JS SDK. HOwever, if something similar can be achieved with Twitter then it would be awesome.

很想听到你们的更多消息,

Would love to hear more from you guys,

亲切的问候,

库拉姆

推荐答案

他们已经用 Intents 功能修复了这个问题:

They've fixed this with the intents function:

https://dev.twitter.com/pages/intents-events

twttr.events.bind('tweet', function(event) {
// Do something there
});

或点击

twttr.events.bind('click', function(event) {
var click_type = event.region;
});

这篇关于Twitter 推文或转推回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆