Integrating with Facebook

The Facebook Connect service allows for a one-click sign on to a Drupal site using the login credentials of the user's Facebook account. In this chapter, we will see how to use the Facebook OAuth module to enable the Facebook Connect authentication service on a Drupal site.

Getting ready

To complete this recipe you will need to have an active Facebook account, and to be logged in. You will also need to install and enable the following module:

How to do it...

We will start by creating a new Facebook application which will be used to provide the authentication for the domain. We will then configure the Facebook OAuth module with the authentication details provided by the Facebook app. Finally, ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.