Your SlideShare is downloading. ×
Facebook for iOS SDK 3.2 Status Quo
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Facebook for iOS SDK 3.2 Status Quo

674
views

Published on

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. …

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.

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
674
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Facebook and iOSFacebook for iOS SDK 3.2 Status QuoRalf Rottmann | CTO Cologne, 01.03.2012 Version 1.0
  • 2. A confusing landscape grandcentrix GmbH
  • 3. A confusing landscapeSpeaking of a fragmented environment... 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 3
  • 4. iOS 6 grandcentrix GmbH
  • 5. Scenario 1: The ideal setupiOS 6 with Facebook connected on OS level 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 5
  • 6. Scenario 2: The very popular setupiOS 6 with Facebook not connected on OS level and the Facebook app installed 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 6
  • 7. Scenario 3: Nothing configured. Nothing installed.iOS 6 with Facebook not connected on OS level and the Facebook app not installed 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 7
  • 8. iOS 5 grandcentrix GmbH
  • 9. Scenario 4: The very popular setupiOS 5 with Facebook and the Facebook app installed 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 9
  • 10. Scenario 5: No Facebook appiOS 5 and the Facebook app not installed 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 10
  • 11. Ralf Rottmannralf.rottmann@grandcentrix.netp. +49 221 677 860 20t. @ralff. http://www.facebook.com/grandcentrix grandcentrix GmbH Schanzenstraße 6-20 D-51063 CologneDo not duplicate, publish, modify or otherwise distribute the material in this presentation unless specifically authorized by grandcentrix GmbH to do so.

×