8 May 2011 11:05 PM #1
Authenticate with Facebook Connect in Sencha Touch App, Authorize against Rails App
I'm working on a mobile app using Sencha Touch. I'd like to enable login and authentication using Facebook Connect. Once the authentication happens with Facebook, I want to be able to use those credentials to authorize against my RESTful Rails backend which will then provide context for the user. All further API calls will need to be made with this authorization token.
Are there any gotchas with having to do this? Any current examples before I dive in? Thanks in advance.
23 May 2011 3:32 PM #2
I use a facebook authentication with sencha touch. I'm not completely satisfy but I make it with the server side flow.
You can had php code in your index.html to check if the user is logged, if he don't, you display the login page in sencha touch (a bouton to go to facebook app login). Then in your php you check if $_GET['code'] (it's a return of facebook), with that variable you can have an access token and your user is connected via facebook.
5 Aug 2011 6:30 PM #3
I just wanted to bump this thread up because I'm running into some issues with Facebook Connect integration. It seems that the only way to do this is on the server side. I would LOVE to see a module for Facebook authentication on Sencha Touch.
By xonmac in forum Sencha Touch 1.x: Examples and ShowcasesReplies: 1Last Post: 10 Jul 2015, 4:32 PM
By bendixso in forum Sencha Touch 1.x: DiscussionReplies: 14Last Post: 11 Mar 2013, 4:15 AM
By sunder in forum Ext 3.x: User Extensions and PluginsReplies: 6Last Post: 8 Jan 2012, 12:54 PM
By djd in forum Sencha Touch 1.x: DiscussionReplies: 11Last Post: 28 Nov 2011, 8:38 AM
By directx0000 in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 23 Nov 2011, 6:49 AM