twitter

Adventures In Authentication

A Capital Region Drupal meetup (the first of its kind I believe) is scheduled for March 6th and I hope to be able to talk about authentication and identity. Just a couple of years ago the issue of authentication and identity on Drupal sites was limited to the functions of the Drupal login system. I remember that the first module I ever utilized to improve the login process was LoginToboggan. LoginToboggan adds such nifty features as logging in with name or email address, placing a login form on pages not accessible to anonymous users and much more. It's a great module and I still use it today. Since then we've also seen a few social networks like Twitter and Facebook increase greatly in popularity. So while millions of people create accounts on those services they may not necessarily want to create an account (and have to remember another password) on your Drupal powered site.

Lucky for us Drupal site builders that the big social networking players realized that in order to get even bigger they would need to reach out to other sites. They have done so via APIs such as Facebook Connect, the Twitter API and Google Friend Connect. All three of these services allow someone to login to a website with their credentials from each of these services. So this allows people to log in to your Drupal site with their identity from Facebook, Google, or Twitter. Pretty cool, eh? All you need are the modules that make the connection between your site and these services.

Modules do exist for each of the three services mentioned above. Facebook Connect, Twitter, and Google Friend Connect all allow you to authenticate users to your site. They require varying degrees of technical expertise to set up and the exact functionality varies too. The good part is that they all seem to excel at verifying the identity of an anonymous visitor to your site, at least temporarily. The bad part is that they really don't fit in with the normal Drupal account creation process. If you're just looking for someone to be able to authenticate temporarily to add a comment they work great. If you want someone to be able to quickly create a full account, with access to all of the features of your site, with Google, Facebook or Twitter credentials then the modules fall short. What seems to work best is a hybrid approach where a user first creates an account on your site and then later connects to their account on the social network. After that they can log in with one of these services (provided you add the right links) and get all the benefits of a member of your site.

Bookmark and Share Bookmark or Share Post

Creating Short URLs For Twitter

Using three contributed modules (Shorten, Short URL and Tweet) I show you how to create short urls for your Drupal site that are easily shared on Twitter.

Note: Click the 'full screen' icon (to the left of the volume control) in order to watch online at full 1280x720 resolution.

Bookmark and Share Bookmark or Share Post

Twitter And Your Drupal Site

Twitter is the hottest social network on the web right now so it's reasonable to think that Drupal site builders would be seeking different ways to integrate their sites with Twitter.Thankfully, there are a number of ways that Drupallers can leverage the power of Twitter on their sites.
Twitter Module
The Twitter module allows you to post to or grab user data from Twitter. The module allows you to add the user and password for a site wide twitter account that will post items to Twitter when they are published to the Drupal site. You can choose which node types will send a notification to Twitter and add some additional default text to the post as well. There is also an option to let users input their personal Twitter account information so that their tweets can be imported to their profiles on your site.
 

Twitter Node Settings

Twitter Post Example

Imported Twitter Statuses

Tweet Module

The Tweet module adds a link that makes it very easy for site visitors to share your nodes on Twitter. The link to share with Twitter is displayed in the "links section" on nodes and teasers. The tweet link can be presented as an icon and the module project page points to some free "tweet this" buttons that you can use.

Tweet Link Example
 

Feed API

Twitter offers a wide variety of feeds that you can then import to your Drupal site using the Feed API module. Once imported via the Feed API module you can customize the presentaton of the tweets using the views module. Each user has their own RSS feed (here's mine) that is linked in the right sidebar of their profile page. Twitter searches via http://search.twitter.com also generate RSS feeds as well. Here's a feed link generated by a search for "drupal" on Twitter. You can get even more granular feeds from Twitter if you use their advanced search feature. For example, here's a feed generated from a search for "drupal" and my username on Twitter. The feed only displays the tweets from me that mention Drupal.

Tweets Imported With FeedAPI

Bookmark and Share Bookmark or Share Post
Syndicate content