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 UI

In order to display the friends list, we need to start by adding a new button to the Facebook UI. Open Storyboard and select the Facebook scene. Holding the Ctrl keyboard button, drag-and-drop a button from the Object Library and place it underneath the e-mail label. Set the label text, for example Friends, for the new button. Deselect the option Enabled by navigating to Utilities Panel | Attribute Inspector.

The screenshots 1 to 5 show the Attribute Inspector with the Enabled option not checked.

Creating the UI

The Friends button will trigger the code that will create an instance of FBFriendPickerViewController only if the user is already logged ...

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