O'Reilly logo

Integrating Facebook iOS SDK with Your Application by Giuseppe Macrì

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the Login interface

In this section we are going to create a new view controller that will enable the application to authenticate users against the Facebook Platform.

Creating the Facebook view controller

Starting from our previous project, we are going to add a new view controller that will contain UI elements and logic to handle the authentication flow.

Select the LBViewController of the application, add a new button on the right-bottom position, and set the label as Go Social, as displayed in the following screenshot. This button will prompt the Facebook view controller and will enable users to use the Platform.

Creating the Facebook view controller

The Go Social button

Now, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required