If you’ve already implemented a Tweet button onto your site, then you’re familiar with the fact that all you can really do with it is have it retweet an article and perhaps suggest that a user follow a specific account. Today, with the implementation of Twitter’s newest tool called Web Intents, your website gets a whole lot more useful.
Web Intents are designed to allow you to have a pretty hefty amount of interaction with a tweet. Instead of just retweeting and following, you can choose to reply, retweet or favorite an individual message, or you can even choose to display a user on your site to be followed.
How To Use Them
Europe’s leading tech festival
TNW Conference is back for its 12th year. Reserve your 2-for-1 ticket voucher now.
After that, each of the actions (Intents) has a different code.
<a href=”http://twitter.com/intent/tweet?in_reply_to=TWEET ID”></a>
<a href=”http://twitter.com/intent/retweet?tweet_id=TWEET ID”>
<a href=”http://twitter.com/intent/favorite?tweet_id=TWEET ID”>
<a href=”http://twitter.com/intent/user?screen_name=USER NAME”>
So how you go about implementing the individual intents can actually be quite compelling. The obvious advantage is that you can have visitors fully interacting with Tweets on your website, without having to authorize any other connections to Twitter. Intents will simply see whether someone is logged in, and then provide the function that you want.
For instance, you could take a screenshot of a specific tweet, then display the image with a link that would allow the visitor to reply to it. It’s a highly customizable option, and there are more thoughts on the best way to use it in the Twitter Dev blog.
It should prove to be a great way to provide more rich content to your site, without having to worry about people clicking away and leaving, just to reply to something that has been said.