User canceled login or did not fully authorize.

Forum Forums ZM AJAX Login & Register User canceled login or did not fully authorize.

Tagged: 

This topic contains 10 replies, has 2 voices, and was last updated by  Zane M. Kolnik 5 years, 3 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #625 Reply

    I am getting this error! Any ideas?

    #626 Reply

    Whenever I click on login or register with FB buttons, the facebook popup opens, it closes, and I get a console message “User canceled login or did not fully authorize.” and nothing happens

    #629 Reply

    The site is http://mezoura.com/ in case you need the URL

    #630 Reply

    I have hidden the FB button with CSS until I can fix it, so if you want to see it, open up the developer tools, and change the display CSS property for .fb-login-container

    #634 Reply

    Zane M. Kolnik
    Keymaster

    Hi,

    Can you check your FB Developer account and make sure that “Sandbox” mode is disabled.

    #637 Reply

    Yes the APP is “Live and available to all users” already. I can add you as a developer/admin to the app if you wish but I doubt I have something wrong there

    #640 Reply

    Any news or ideas on what this is? And where to look in order to debug it?

    #641 Reply

    As a temporary fix, I have edited the login.js file and commented out the following part

    if ( response.authResponse.grantedScopes == "public_profile,email,contact_email" )

    and it seems to be working OK, both login and register. If you have a permanent solution please share.

    #642 Reply

    Obviously I mean I commented out the whole if else statement and left only the

    FB.api('/me', function(response)

    #644 Reply

    Zane M. Kolnik
    Keymaster

    Hi,

    Thanks for finding this! It seems that FB changed the order of the granted scopes, and at the time of writing (referencing their API) below was the way to check:

    (old)
    if ( response.authResponse.grantedScopes == "public_profile,email,contact_email" ){

    Currently this is a hot fix:
    (new)
    if ( response.authResponse.grantedScopes == "email,contact_email,public_profile" ){

    They are found in login.js #86

    I’m currently working on a fix that will check the scope no matter the order of the response.

    #652 Reply

    Zane M. Kolnik
    Keymaster

    Hi,

    I just fixed this in our development version (working on a new release at the moment), and wanted to provide you the full solution. Considering this is also fixed on free you can reference the code in login.js on GitHub:

    https://github.com/zanematthew/zm-ajax-login-register/commit/ffb7f1eade18b800807b4caf1f37bc82443a2868

    As of now I’m aiming to have 1.2.5 out late this week, early next week.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: User canceled login or did not fully authorize.