Results 1 to 4 of 4

Thread: Sign-in with facebook mobile view

  1. #1
    Join Date
    Oct 2011
    Posts
    25

    Default Sign-in with facebook mobile view

    If I navigate to facebook.com via the phone browser, it is capable of detecting that I'm on a mobile phone, and redirect me to m.facebook.com. However, if I use the sign-in-via-Facebook feature through Spring-Social, the redirect does not happen. Is this something that is known or is there a workaround?

  2. #2
    Join Date
    Aug 2004
    Posts
    1,067

    Default

    Are you going to simply facebook.com on the mobile browser or https://graph.facebook.com/oauth/authorize? The best I can tell, going to https://graph.facebook.com/oauth/authorize (which is the authorization URL that Spring Social redirects to), it doesn't detect the kind of browser for you (but I agree, it would be nice if it would).

    The documentation at says that I should redirect to https://www.facebook.com/dialog/oauth" and their documentation also shows a mobile-friendly layout in screenshots...so maybe I'm using the wrong URL. But I tried that in my iPhone simulator with the same results.

    I'll keep looking, but from all indications this would be a problem on Facebook's end (although I admit that maybe Spring Social should use the URL given in the current form of the FB documentation).
    Craig Walls
    Spring Social Project Lead

  3. #3
    Join Date
    Oct 2011
    Posts
    25

    Default

    I was able to get the properly display by adding display=wap. I guess I need to implement SignInController and call buildOAuthUrl with the additionalParams tag if my mobile app calls the sign-in endpoint.

    However, I wonder why facebook can't tell the difference when the source is from an OAuth redirect...

  4. #4
    Join Date
    Aug 2004
    Posts
    1,067

    Default

    That's true...the display=wap is an option...display=touch may be a better option, though. It's a shame that Facebook can't detect the correct display mode, though. It'd be nice if it could detect it and then the only time you'd need to use the display parameter is if you want to override the detection.
    Craig Walls
    Spring Social Project Lead

Posting Permissions

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