Downloading the Facebook iOS SDK

In this recipe we will learn the steps involved to download the Facebook iOS SDK.

Getting ready

In order to proceed, we first need to launch our browser and download the Facebook iOS SDK package from the Facebook developer website.

How to do it...

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

  1. Launch your browser and enter in http://developers.facebook.com/ios/.
    How to do it...
  2. Next, click on the Download the SDK button to start downloading the Facebook SDK. Once downloaded, install the package. The default installation location is ~/Documents/FacebookSDK.

How it works...

In this recipe, we looked at the necessary steps required to download the Facebook iOS SDK from the Facebook developer portal. Compared to earlier releases of the Facebook SDK, this SDK is now packaged as a framework and provides you with all of the functionality required to make your applications interact with the Facebook platform. Whenever developing applications with the Version 3.1 and above of the Facebook SDK, it requires Xcode 4.5 and above.

There's more…

The Facebook SDK framework contains all of the method objects and APIs that are required to enable you to interact with Facebook and send notification requests, or simply post messages to the current person's wall page using the Single Sign On feature of the Facebook iOS SDK.

This lets your users sign in to your app using their Facebook identity. With the initial release of the SDK, the authorize method always opened an inline dialog box containing UIWebView in which the authorization UI was shown to the user, and required users to enter their credentials separately for each app they authorized.

In the updated version of the SDK this has been changed and no longer requires users having to re-enter their credentials for every application on the device they want to authorize. Using the Facebook iOS SDK allows you to do the following:

Facebook iOS SDK types

Description

Authentication and authorization

Prompt users to log in to Facebook and grant permissions to your application.

Make API calls

This allows you to fetch user profile data, as well as any information related to the user's friends using JSON API calls.

Display dialog

This allows you to interact with the user via a UIWebView view. This is extremely useful for enabling interactions with Facebook, without requiring upfront permissions.

See also

  • The Registering your iOS applications with Facebook recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset