12 Jun 2012 2:44 PM #1
oAuth with Facebook
oAuth with Facebook
Been messing around with sencha.io today. I like it and i have managed to deploy my sencha touch 2 app into the sencha.io cloud.
Note! I needed to add version 188.8.131.52 to overrides.js
I managed to get usergroups to work also. Login is there and all is fine. This was with the user group set to "sencha.io".
Next goal was to change to Facebook oAuth and this is where I'm stuck.
Using the setting "in app" for login gives me an error about cross domain stuff.
Setting it to "before download" brings up the Facebook authentication page but when selecting" open applications" there is a ERR_TOO_MANY_REDIRECTS error.
The webpage at https://graph.facebook.com/oauth/authorize?scope=email&redirect_uri=http%3A%2F%2Ffacebookfriends.login.senchafy.com%2Ffacebook%2Flogin&client_id=372319812821941&type=web_server#_=_ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
12 Jun 2012 4:50 PM #2
We have a step by step guide for enabling Facebook using in-app authentication. It should be published soon.
are you using Ext.io.Controller?
The tricky part is making sure that the domain serving the app is the same as the domain listed for the app on Facebook.
Can you post the URL to the app or source code?
12 Jun 2012 7:31 PM #3
Looking forward to that guide Jason. There seems to be a thousand things that can go wrong here. The registration of a Facebook app on Facebook.com (to get the id and secret keys) , has zillions of settings. I think this is where it fails somehow. I stated the "senchafy.com" as the serving domain.
I followed the guide and is using Ext.io.Controller. Rest of the app is the skeleton generated by the "sencha" command.
4 Sep 2012 4:52 PM #4
Does this mean that Sencha.IO and Facebook authentication will not work for Sencha apps that are packaged as native? They will not be running on a URL as such, so we don't have a URL to register with Facebook?
4 Sep 2012 7:43 PM #5
You are correct, Sencha.io does not currently support Facebook auth via the native wrapper.