Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    May 2011
    Vote Rating

    Default 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
    Vote Rating


    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
    Vote Rating

    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. Ruby on Rails and Sencha Touch - modular way (demo)
    By xonmac in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 1
    Last Post: 10 Jul 2015, 4:32 PM
  2. 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
  3. 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
  4. Sencha Touch + Facebook Graph API
    By djd in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 28 Nov 2011, 8:38 AM
  5. 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts