1. #1
    Sencha Premium Member Fredric Berling's Avatar
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    186
    Vote Rating
    15
    Fredric Berling has a spectacular aura about Fredric Berling has a spectacular aura about

      0  

    Default 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 2.0.1.1 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.

    Code:
    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.
    any ideas on this?

  2. #2
    Sencha - IO Dev Team
    Join Date
    Apr 2011
    Posts
    84
    Vote Rating
    5
    jason.cline is on a distinguished road

      1  

    Default


    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?

  3. #3
    Sencha Premium Member Fredric Berling's Avatar
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    186
    Vote Rating
    15
    Fredric Berling has a spectacular aura about Fredric Berling has a spectacular aura about

      0  

    Default


    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.

    /Fredric

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
    BrettNagy is on a distinguished road

      0  

    Default


    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?

  5. #5
    Sencha - IO Dev Team
    Join Date
    Apr 2011
    Posts
    84
    Vote Rating
    5
    jason.cline is on a distinguished road

      0  

    Default


    You are correct, Sencha.io does not currently support Facebook auth via the native wrapper.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi