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 18.104.22.168 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.
any ideas on this?
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.
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?
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.
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?
You are correct, Sencha.io does not currently support Facebook auth via the native wrapper.