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:
- Is this indeed possible? If it’s not and I’m about to waste hours on this endeavor, a little warning will be appreciated.
- Have you done this before? Can you share code, or even just tips?
Thanks! [import]uid: 7026 topic_id: 2733 reply_id: 302733[/import]
[import]uid: 6175 topic_id: 2733 reply_id: 10450[/import]