Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1419] iOS: Update Titanium.Facebook to use Facebook's New OAuth 2.0 Authentication

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-10-17T16:38:39.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-41, Release 1.7.4, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterDave Morehouse
AssigneeBlain Hamon
Created2011-04-15T02:51:53.000+0000
Updated2011-12-07T13:52:53.000+0000

Description

Facebook has switched to using OAuth 2.0 for it's authentication see (http://developers.facebook.com/docs/authentication)">http://developers.facebook.com/docs/authentication). This new authentication strategy has several significant benefits over the old way of authenticating.
1) The client only needs the App Id and not the Secret Key. No more exposing your secret key or proxying authentication calls through your servers.
2) The session object that is returned now holds enough information for the server to validate that the response came from Facebook (so only the application server has the secret key)
3) Extended application permission control has been added to the Facebook Connect authentication. (http://developers.facebook.com/docs/authentication/permissions)">http://developers.facebook.com/docs/authentication/permissions).
4) You can now use the access_token to easily call the graph API without the need to calculate signatures

Comments

  1. Sindre Sorhus 2011-04-15

    Facebook has released an SDK for iOS:
    http://github.com/facebook/facebook-ios-sdk">http://github.com/facebook/facebook-ios-sdk

  2. Anthony Webb 2011-04-15

    +1 for moving this one up the list, would be nice to have this

  3. Jesus H. Christ 2011-04-15

    +1 for this. Seems like this needs an overhaul pretty badly. Many posts in Q&A and Helpdesk are related to the currently-very-broken implementation (When using extended permissions such as offline access and requesting multiple permissions at a time).

    More-so, the ability to request all permissions at login time (preventing multiple windows) would be nice.

  4. Alan Leard 2011-10-12

    For iOS 1.7.2 AND 1.8 CI dialog posts are breaking. 1.7.2 seems to work for android, but 1.8 does not work for android or iOS. It seems that the login is working, and graph APIs, but dialog posting does not work. This can be tested in Kitchen Sink.
  5. florent loose 2011-10-18

    sorry, i'm new here. how could i know WHEN this bug fix will be available in a new sdk ?
  6. Michael Pettiford 2011-10-21

    Tested with 1.7.4.v20111021114614 with TiStudio 1.0.6.201110202348 on OSX Lion 10.7.2 iPod Touch with OS version 4.0.2 -- iPhone 4S with OS version 5.0 -- iPhone 3GS with OS version 3.1.2 -- iPad2 with OS version 4.3.5 iPhone simulator with OS version 5.0 and OS version 4.3 Facebook dialog is presented and successfully posts to Facebook. Keeping open to confirm with 1.8 before closing.
  7. Michael Pettiford 2011-10-25

    Tested with 1.7.4.v20111025151415 with TiStudio 1.0.6.201110202348 on OSX Lion 10.7.2 iPhone 4S with OS version 5.0 – iPhone 3GS with OS version 3.1.2 – iPad2 with OS version 4.3.5 Facebook dialog is presented and successfully posts to Facebook. Keeping open to confirm with 1.8 before closing.
  8. Wilson Luu 2011-12-07

    Closing bug. Verified fix on: OS: Mac OS X Lion Titanium Studio, build: 1.0.7.201112061404 SDK build: 1.8.0.1.v20111207091653 Devices: iOS Simulator (4.3), ipod 3rd Gen (4.0.2), iphone 4S Sprint (5.0.1), ipad 2 (5.0.1)

JSON Source