Tuesday, September 8, 2009

Facebook Connect Module for Drupal



This module enables users on your site to use their Facebook account and participate as registered users. This is intended for Drupal 6.x sites only. The best way to know more is to install this and try it out.

How this works

When a user comes to your site, they will see a Facebook Connect button in the login block (Figure 1. below). Clicking this button will prompt the Facebook Connect dialog (Figure 2. below) which will ask for permissions to connect. If they choose to go ahead, they will be prompted for an email address which will be used to create an account on your site which is in turn linked to their Facebook accounts. They can always login using their Facebook account there after.

Now on logging in, they will see a new Facebook Connect block which will show them a list of their friends also on your site and enable them to invite other friends. You can see an example in Figure 3. below.


Figure 1: Facebook Connect Login Button


Figure 2: Facebook Connect Login Dialog


Figure 3: Sample Facebook Connect Block


You can’t make configuration brain-dead simple. Unfortunately, that is how it is. There are a few steps needed to make this work.

  1. Install the module Fconnect under the directory /modules/fconnect
  2. Download the Facebook client library located at
  3. Copy the files under the directory /modules/fconnect/facebook-client, where is the root of the site.
  4. Next you will need to get application key and secret. To get that, create a facebook application. Visit and fill up the form. Make sure your callback URL points to the site root (E.g.,
  5. Go to the module settings admin page and fill up the key/secret you get from Facebook (see figure 4. below). These settings will be available at /admin/settings/fconnect.
  6. Setup the Facebook Connect Block settings. You will see a new “Facebook Connect” block at /admin/build/block. Click configure to set properties (see figure 5. below) .
  7. This is the last but the most important part. This module uses facebook markup language. For this to work, we need to update the page.tpl.php file. This is as part of the template engine you are using. Please make the following change: to <html xmlns="" /> to <html xmlns="" xmlns:fb="" />


Figure 4: Facebook Connect Admin Settings


Figure 5: Facebook Connect Block settings

Live Demonstration

This site uses this module. Please feel free to try it out.


Post a Comment


Web Design Company karimnagar, Web Designing warangal, Logo Design Company nizamabad, Indian Website Design Company,