1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    1
    Vote Rating
    0
    anandiyer is on a distinguished road

      0  

    Default Authenticate with Facebook Connect in Sencha Touch App, Authorize against Rails App

    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.

  2. #2
    Sencha User Dragnalith's Avatar
    Join Date
    Apr 2011
    Posts
    26
    Vote Rating
    0
    Dragnalith is on a distinguished road

      0  

    Default


    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.

    I think the best way is to use "client side flow" to connect with javascript, except it makes a pop-up for facebook connection and I haven't find yet how to deal with it through sencha touch.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Vote Rating
    0
    loudin is on a distinguished road

      0  

    Red face


    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.

Similar Threads

  1. Post to Facebook wall from Sencha Touch App?
    By bendixso in forum Sencha Touch 1.x: Discussion
    Replies: 14
    Last Post: 11 Mar 2013, 4:15 AM
  2. How i connect java code with Sencha Touch ! ! !
    By sunder in forum Ext 3.x: User Extensions and Plugins
    Replies: 6
    Last Post: 8 Jan 2012, 12:54 PM
  3. Sencha Touch + Facebook Graph API
    By djd in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 28 Nov 2011, 8:38 AM
  4. Is it possible to integrate Facebook authentication into Sencha Touch
    By directx0000 in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 23 Nov 2011, 6:49 AM
  5. Ruby on Rails and Sencha Touch - modular way (demo)
    By xonmac in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 0
    Last Post: 14 Jan 2011, 10:22 AM

Thread Participants: 2

Tags for this Thread

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