Facebook for iOS SDK 3.2 Status Quo

12
Cologne, 01.03.2012 Version 1.0 Ralf Rottmann | CTO Facebook for iOS SDK 3.2 Status Quo Facebook and iOS

description

With the integration of Facebook on operating system level in iOS 6, there are multiple ways of allowing users to share stuff from within an app. Supporting iOS 5 and iOS 6 can get pretty complex. This presentation provides a high-level overview of how things work in the various scenarios. Get in touch with Ralf at http://twitter.com/ralf or on ADN.

Transcript of Facebook for iOS SDK 3.2 Status Quo

Page 1: Facebook for iOS SDK 3.2 Status Quo

Cologne, 01.03.2012 Version 1.0

Ralf Rottmann | CTO

Facebook for iOS SDK 3.2 Status QuoFacebook and iOS

Page 2: Facebook for iOS SDK 3.2 Status Quo

grandcentrix GmbH

A confusing landscape

Page 3: Facebook for iOS SDK 3.2 Status Quo

Version 5.x of the iOS operating system knows nothing about Facebook.Version 6.x introduces an operating system level integration with Facebook.Behavior also depends on the native Facebook application being available on a device, or not.These varying scenarios are partially abstracted by the Facebook SDK for iOS – but not completely.

grandcentrix GmbH

Speaking of a fragmented environment...A confusing landscape

3

Page 4: Facebook for iOS SDK 3.2 Status Quo

grandcentrix GmbH

iOS 6

Page 5: Facebook for iOS SDK 3.2 Status Quo

In this scenario

‣ The Facebook SDK will authenticate the user using an OS level system dialog.

‣ Absolutely no app switching will occur, everything will happen smoothly inside your app.

‣ Sharing will leverage Apple’s system level share UI.

‣ The native Facebook app is not required. If it’s there, it simply gets ignored.This configuration arguably delivers the best overall user experience. Developers don’t have to write any UI related code. The Facebook SDK handles everything automatically.

grandcentrix GmbH

iOS 6 with Facebook connected on OS levelScenario 1: The ideal setup

5

Page 6: Facebook for iOS SDK 3.2 Status Quo

In this scenario

‣ The Facebook SDK will authenticate the user by switching to the native Facebook app, asking the user to confirm and switching back.

‣ Trying to share using Apple’s system level share UI will silently fail and the developer can react to this in a couple of ways:

‣ Force Apple’s system level share UI in which case the user is asked to connect her Facebook account on iOS level.

‣ Use the Facebook SDK to pop up the Facebook Feed Dialog in an in-app Web View.

‣ Provide her own user interface. A pretty solid clone of Apple’s system level share UI is available here: https://github.com/sakrist/FacebookSample.

While the Facebook SDK provides means to detect this situation, handling it appropriately is completely up to the developer.

grandcentrix GmbH

iOS 6 with Facebook not connected on OS level and the Facebook app installedScenario 2: The very popular setup

6

Page 7: Facebook for iOS SDK 3.2 Status Quo

In this scenario

‣ The Facebook SDK will authenticate the user by switching to Mobile Safari, asking the user to log into Facebook, confirm and switching back.

From here on onwards, Scenario 2 applies.

grandcentrix GmbH

iOS 6 with Facebook not connected on OS level and the Facebook app not installedScenario 3: Nothing configured. Nothing installed.

7

Page 8: Facebook for iOS SDK 3.2 Status Quo

grandcentrix GmbH

iOS 5

Page 9: Facebook for iOS SDK 3.2 Status Quo

In this scenario

‣ The Facebook SDK will authenticate the user by switching to the native Facebook app, asking the user to confirm and switching back.

‣ For sharing, the developer has two alternatives:

‣ Use the Facebook SDK to pop up the Facebook Feed Dialog in an in-app Web View.

‣ Provide her own user interface. A pretty solid clone of Apple’s iOS 6 sharing UI is available here: https://github.com/sakrist/FacebookSample.

grandcentrix GmbH

iOS 5 with Facebook and the Facebook app installedScenario 4: The very popular setup

9

Page 10: Facebook for iOS SDK 3.2 Status Quo

In this scenario

‣ The Facebook SDK will authenticate the user by switching to Mobile Safari, asking the user to log into Facebook, confirm and switching back.

From here on onwards, Scenario 4 applies.

grandcentrix GmbH

iOS 5 and the Facebook app not installedScenario 5: No Facebook app

10

Page 11: Facebook for iOS SDK 3.2 Status Quo

grandcentrix GmbHSchanzenstraße 6-20

D-51063 Cologne

Do not duplicate, publish, modify or otherwise distribute the material in this presentation unless specifically authorized by grandcentrix GmbH to do so.

p. +49 221 677 860 20t. @ralff. http://www.facebook.com/grandcentrix

[email protected] Rottmann

Page 12: Facebook for iOS SDK 3.2 Status Quo