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.
Following on from our previous recipe, ensure that our SocialNetworkApp
project file is open.
To begin, follow the simple steps as outlined in the given order:
Open the
AppDelegate.hinterface
file from the Project Navigator.Next, modify the interface file as shown by the highlighted code sections:
// AppDelegate.h // SocialNetworkApp // Created by Steven F. Daniel on 11/12/12. // Copyright (c) 2012 GenieSoft Studios. All rights reserved. #import <UIKit/UIKit.h> #import "FBConnect.h" @class ViewController; @interface...