Twitter @Anywhere is an easy-to-deploy solution for bringing the Twitter communication platform to your site. @Anywhere promotes a more engaged user base for your site. Use @Anywhere to add Follow Buttons, Hovercards, linkify Twitter usernames, and build deeper integrations with "Connect to Twitter."
First things first, you're going to need a registered client application with Twitter to get started. While you can use an existing application, it's recommended that you create a new one for @Anywhere. To function, the callback URL property of your application must match both the subdomain and domain of the web application utilizing @Anywhere.
Create an @Anywhere application »
On any HTML page that you want to use @Anywhere, simply include a <body> of the page.
To limit the scope of what is linkified, simply pass a CSS selector to the Twitter API client (T). For example, to linkify only Twitter usernames found in an element with the id of "linkify-this-content", pass the selector "#linkify-this-content" to T:
linkifyUsers, and most of our other API methods, take some additional configuration options. For example, by default, linkifying usernames will wrap matched names in an anchor element with a class of "twitter-anywhere-user": . You can specify an alternate class name by passing an object literal and set the value of the className property to the desire class name. For example, to change the class to "my-tweep":
Hovercards are a feature that can be seen on Twitter.com and are now available to developers through @Anywhere. A Hovercard is a ... Lire la suite de l'article

