Facebook for iOS SDK 3.2 Status Quo
-
Upload
grandcentrix-gmbh -
Category
Technology
-
view
698 -
download
0
description
Transcript of 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
grandcentrix GmbH
A confusing landscape
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
grandcentrix GmbH
iOS 6
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
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
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
grandcentrix GmbH
iOS 5
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
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
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