Implementing the Single Sign On (SSO) feature

In this recipe, we will learn how to implement the Single Sign On feature of the Facebook iOS SDK that will enable our application to communicate with Facebook.

The process of using SSO works by redirecting the user to the Facebook iOS application on their device, and presenting them with an authentication dialog box, showing only those permissions that your application has been configured to use.

Getting ready

Following on from our previous recipe, ensure that our SocialNetworkApp project file is open.

How to do it...

To begin, follow the simple steps as outlined in the given order:

  1. Open the AppDelegate.hinterface file from the Project Navigator.
  2. Next, modify the interface file as shown by the highlighted ...

Get Xcode 4 Cookbook now with O’Reilly online learning.

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