Facebook OAuth Authentication

I am planning on using OAuth for my facebook application, but the Facebook sample code and this article (http://blog.anscamobile.com/2010/03/facebook-connect-and-web-popups-in-corona/) seems based on the older authentication scheme. Yes, the older authentication scheme is still supported by Facebook, but OAuth 2.0 offers a number of advantages, the main one being the ability to store a user’s access token so that I won’t have to do a Facebook authentication whenever the user does a Facebook action.

I’m looking at implementing this flow: http://developers.facebook.com/docs/authentication/desktop and it seems to me that it can be implemented by using native.showWebPopup. Instead of checking for “fbconnect:success”, check instead for “http://www.facebook.com/connect/login_success.html” instead.

My questions are:

  1. Is this indeed possible? If it’s not and I’m about to waste hours on this endeavor, a little warning will be appreciated.
  2. Have you done this before? Can you share code, or even just tips?

Thanks! [import]uid: 7026 topic_id: 2733 reply_id: 302733[/import]

Oauth 2 will not work until Corona supports SSL which has not been announced yet…but I hear rumors that it’s in the works :wink: [import]uid: 6175 topic_id: 2733 reply_id: 10450[/import]

I hate to bump this old thread, but in case someone comes upon it during a search, I want to make sure everyone knows that out ‘network’ API now supports SSL:

http://developer.anscamobile.com/reference/index/networkrequest [import]uid: 52430 topic_id: 2733 reply_id: 70680[/import]