Social login failing on mobile only, redirects to 404 page

I have social login through Facebook, Google, and LinkedIn implemented and functioning correctly on my website. However, when trying to login on a mobile browser, the user enters their login information for the appropriate social site and is taken to http://www.oneall.com/callback/ where a 404 error message is displayed. On some browsers, the message is "Invalid Request. The provider_connection_token does not exist or has not been specified." I am not sure how to go about resolving this issue.

Best Answer

  • Fred_PinelFred_PinelMember
    Answer ✓
    Hi,
    Sorry for delay.
    There is possible explanation.
    On mobile devices, popups are disabled by default, which prevents the events from firing (docs.oneall.com/api/javascript/library/methods/#sll_set_popup_usage).
    So, to test this, could you add:
    _oneall.push(['social_login', 'set_popup_usage', 'always']);to the JS file (is it oneall.js?).
    This will bring up a popup, which is kind of ugly, but should fire your events.

    Let us know how this goes.

Answers

  • Hi,
    Yes, this is definitely the wrong callback.
    Are you getting the 404 for all social networks?
    Is there a URL for your website, and could you tell if you are using a specific Oneall plugin?

    Thanks.
  • Hi Fred,

    The website is https://usopen2016.fishsoftware.com/prereg.

    I have narrowed down the problem quite a bit since yesterday. I am trying to disable the redirect to the set_callback_uri by returning false in my 'my_on_login_redirect' JS function to cancel the redirect (which is why the default "http://www.oneall.com/callback/" is still in the code—leftover from the working example here: https://docs.oneall.com/api/javascript/library/methods/).

    In desktop browsers, I am able to cancel the redirect by returning false and still get the connection token to pass to our own server call, which returns with OneAll's social login data for the user and proceeds with a callback method to prepopulate our registration form with that information.

    In mobile browsers, however, the redirect happens regardless of the boolean value returned in my_on_login_redirect, which causes it to redirect to a page we do not want. I tried passing an empty callback uri in the hopes that the default behavior would be not to redirect at all, but no luck.

    You can see how we are implementing OneAll in this file: https://usopen2016.fishsoftware.com/prereg/js/oneall.js
  • Hi,
    Indeed, the redirect does work in desktop. We'll try in mobile.
    But, are you sure there isn't any custom code for mobile?
  • Nothing but some CSS changes.
  • That worked perfectly, thank you for your help.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.