Twitter's 'Web Intents' Make It Easy To Bring Interactivity To Tweets On Your Site

Twitter has just released "Web Intents" that provide popup-optimized flows for working with Tweets & Twitter Users: Tweet, Reply, Retweet, Favorite, and Follow. They make it possible for users to interact with Twitter content in the context of your site, without leaving the page or having to authorize a new app just for the interaction. […]

Twitter has just released "Web Intents" that provide popup-optimized flows for working with Tweets & Twitter Users: Tweet, Reply, Retweet, Favorite, and Follow. They make it possible for users to interact with Twitter content in the context of your site, without leaving the page or having to authorize a new app just for the interaction. Web intents are mobile friendly, and super easy to implement.

Those interested can invoke an Intent by embedding a line of Javascript and HTML, without having build an OAuth app in order to attach these functions.

Twitter Web intents tweet
Twitter Web intents

WordPress.com has already implemented Web intents on latest update of the Twitter Blackbird pie.

"We recommend rendering each Web Intent at 550px width, with variable heights ranging from 420px to 560px -- if you use the provided pop-up Javascript, the heights will be adjusted for you. The pop-up will automatically close after the user has seen their intent to completion and users will be asked to confirm their action before it's executed," Twitter notes.

The easiest way to use intents is to include this SCRIPT tag on any web page you wish to invoke an intent. If you've already setup the Tweet Button, you're already prepared for Web Intents. When combined with standard anchor tags and familiar iconography like the examples below, this Javascript will automatically open a window of the appropriate size when clicked. You only need to load http://platform.twitter.com/widgets.js once.

%MINIFYHTML6d9dcf6327245b4a25e1d9654667720312%

Reply

Retweet

Favorite

[Source]