Support » Plugin: Nextend Social Login and Register » Some logins fail

  • Resolved zebrastribe2

    (@zebrastribe2)


    Hi
    When I try to login some users the auth never happen and the user is not logged in.

    When logged in at facebook and clicking the “Verify Settings Again” I get this message:
    Feature Unavailable: Facebook Login is currently unavailable for this app.

    The app is configured and is enabled

    But some users can login…

    • This topic was modified 3 months, 2 weeks ago by zebrastribe2.
    • This topic was modified 3 months, 2 weeks ago by zebrastribe2.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @zebrastribe2

    Have you managed to fix the problem?
    Since I checked the login with Facebook at the link you provided, and it worked fine for me. I also didn’t see the error message you described.

    Anyways according to your error message the problem is connected to your Facebook App configurations, as Facebook recently made some modifications.

    • First you should check if you indeed have the “Facebook Login” product added to your Facebook App ( if you have the Facebook Login product added, then on the left side under Products, you should see “Facebook Login” appearing).
      If you don’t have the Product added, then you should click on the + icon next to “Products” and you should add the Facebook Login like we suggest in the Getting Started section at step 8.
    • If you have already had the Facebook Login product added, then you should go to Settings > Basic > scroll down to the bottom of the page and check if the “Website” platform appears there. If it does, then don’t forget to add your site URL there, that we suggest in the 9-th step of the Getting Started section.
      If the Website platform is not added, then click on the Add Platform button below and chose website.

    Important note:
    Recently Facebook introduced the “User Data Deletion” field as a requirement for making your App live. This setting can be found at the top of the page at Facebook Settings > Basic.
    And this field should be configured like we suggest in our documentation at step 17:
    https://nextendweb.com/nextend-social-login-docs/provider-facebook/#configuration

    Best regards,
    Laszlo.

    Thread Starter zebrastribe2

    (@zebrastribe2)

    Hej Lazlo
    No I did not fix the problem. It is pretty weird. I got two different facebook accounts one that can logon and one that cannot…

    and the one account that does not login is not in the facebook app log…

    https://ibb.co/Z86hzmk (my personal account that does not login)
    https://ibb.co/R7h0KJx (setting in wordpress)
    https://ibb.co/jM5mr2D (log from facebook app)
    https://ibb.co/Pr598zP (settings from facebook app)

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @zebrastribe2

    Is it possible that earlier you linked the problematic Facebook account over another Facebook App to your WordPress account?
    Since Facebook uses App scoped user IDs which means the same user have different IDs in each Facebook Apps.
    E.g.:
    -if earlier you have another Facebook App, let’s call it App1 and you linked your Facebook account over that App
    -and now replaced the old Facebook App with a new Facebook App let’s call it App2
    then you will only be able to login over the App that you originally used to link the Facebook Account ( in this case App1 ).

    If this is the case, then you can only login with the new Facebook App, if you:

    1. Login to your WordPress account with the traditional username / password login
    2. then you unlink the currently linked Facebook account using the Unlink button, e.g. at your profile page: https://example.com/wp-admin/profile.php
    3. then you need to Link the Facebook account again, with the Link button

    Note:
    If this is the cause of the problem, and there are other users on your site who registered over the old App, then they will also need to repeat this process.

    Also please make sure you configured the “User Data Deletion – Data Deletion Instructions URL” like I mentioned in my previous reply.

    Thread Starter zebrastribe2

    (@zebrastribe2)

    I think this might be the problem. I have change to an other facebook app. The trouble is that I have a lot of users. Is there a way of unlink the old facebook app as an admin on the site?

    Plugin Support Ramona (from Nextend)

    (@nextend_ramona)

    Unfortunately, no. The only safe way to unlink the accounts is for the users to do so themselves. Otherwise, they can lose access to their old account, becuse they might not be able to log back into it.

    For example, if they didn’t share their email address with your app, their WordPress account has no email address, so detaching the Facebook account means absolutely no way for them to log in again.
    Or if they have an email address at their WordPress account, which isn’t the same as what they have at Facebook now, the next login will create a new WordPress account for them. This can happen, if they linked the Facebook account at their profile on your site, or changed the Facebook email since they registered to your site.

    I recommend writing a guide for your users with instructions on what to do to ensure their account remains accessible after you change the Facebook app. Please be aware that this will be a multi-step process, as you can’t use more than one Facebook app to offer the login. So your users won’t be able to migrate to your new app at once, you’ll need to provide a certain timeframw for them to do so. Depending on the user activity, the whole process can take weeks, so if you can, I recommend going back to your initial Facebook app instead, to save hassle for both yourself and your users.

    If you can’t/don’t want to go back to the old Facebook app, here’s a summary on what your users need to do to ensure that they can still access their profile after you change the Facebook app:

    <b>To remove the old app connections</b>
    First, you need to set the old Facebook app back. Then the users would need to log in to their WordPress account via Facebook provider. Once they’re in their account, they need to set up the WordPress account with email/username and password. Ask them to unlink the Facebook account from their profile. Now they’ll be able to log as regular WordPress users.
    Once that’s done for all users, I recommend removing the option to log in with a Facebook account. (E.g. disable the social buttons on your login forms.) This way they could still log in to their regular WordPress account, and unlink their Facebook account there.

    <b>To connect the users with thei new app</b>
    Set the new app key/secret for the Facebook provider. This way your users will be able to Link their WordPress account to the new Facebook app after they logged in to their account with email/username and password.
    You could put back the social login buttons on your login/register forms. You could also change the Global settings > General > Membership to Disabled:
    https://nextendweb.com/nextend-social-login-docs/global-settings/
    when you feel most of your users have already migrated.
    This would prevent any new registrations with a social account, but those, who have linked their profile would be able to log in.
    Please note that this option prevents the registration with all social accounts, so if you have Google/Twitter provider configured, those registrations won’t work either. Only those users will be able to log in, who have previously linked heir account, or their WordPress user email matches the one the provider returns.

    Thread Starter zebrastribe2

    (@zebrastribe2)

    Part of the trouble is that facebook app is on an unknown account. Can I set up a new app and inform the users to link to the new app?
    or will they need to signup again?

    Plugin Support Ramona (from Nextend)

    (@nextend_ramona)

    Hi @zebrastribe2

    If you replace the app your users have signed up with, then your users will need to go through the multi-step process described above before the app is changed. Without unlinking the the old Facebook app first, they won’t be able to log in with Facebook at all:
    https://nextendweb.com/nextend-social-login-docs/provider-facebook/#limitations

    So you can’t make an immediate change. If you just change the Facebook app ID and secret at the Facebook provider, without the users going through the previous steps of the migrating process, they’ll no longer be able to log back into their account. (Unless they have a username/password set up, although generally people who sign up with a social account don’t have that.)

    You could send an email to all of your users about what you want to do, and what they’ll need to do to ensure they can log back into their account. But since it’s possible not to share the email address with the Facebook app, there might be some users, who won’t receive the email. Those are the users, who will have absolutely no other way to log back into their account, if you just change the app at the Facebook provider.
    Of course, you can send the email with the guide on how to unlink their Facebook profile and create a way to log in to their account. But you should also display this guide for the logged in users, to ensure that all users will see it. And make sure you give enough time for the users to set up WordPress username/password and unlink their Facebook account from their WordPress account.

    Thread Starter zebrastribe2

    (@zebrastribe2)

    Thank you for all the help. I am not sure which way to go here…

    1.
    The old Facebook app is linked to an unknown facebook account and might not be working correctly. Some can login and some cannot…
    Trying to verify the old facebook app I get this message:
    Feature Unavailable: Facebook Login is currently unavailable for this app.
    And think they cannot unlink the old facebook app then

    2.
    I have both the new and the old facebook app ID and secrets.

    3.
    Some of the users do not have emails so I cannot warn them or sent them any information to them. This make the migration almost impossible and a bit of a chaos.

    4.
    When a facebook user fail to login and reach out via chat or mail me. I can supply them with an wordpress login to their account. But I guess that their Social login are forever linked to the old App if not unlinked by them…

    Can they unlink their account from the old app when the new is active? (I guess not)

    5.
    Can this be done?
    I only use the new app. If a Facebook login user fail then I will sent them a username/password. They remove the old facebook app from facebook apps from here: https://www.facebook.com/settings?tab=applications.
    They login to wordpress and relink the account?

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @zebrastribe2

    I assume your old Facebook App started throwing this “Feature Unavailable” message as Facebook may asked you to do something with that App, but you missed that, so they disabled the old App. ( They usually send emails to the owner of the App, if something needs to be adjusted in an App. )
    If you no longer have access to the account that your old Facebook App is associated with, that means you are not able to make these adjustments either, so users won’t be able to login with the old App either.

    So in this case the only thing you can do is to reconfigure the Facebook provider with the credentials of your new App. And users who will experience problems with Facebook login, need to login with the traditional username/password login, then Unlink their Facebook account, and Link the Facebook account again.
    ( When you Unlink a social media account it doesn’t matter whether the Account was linked over the old App or the new. It will simply delete the stored link. )

    Users who don’t have any email set:
    if these users only used Facebook login to login to their accounts, then these users won’t have any other ways to login, once the App is replaced.
    So they will need to get in touch with you over chat or email and they will need to prove it somehow that they are the rightful owners of the account. Once they proved the ownership, you could tell them their usernames and generate them a password, so they could login with the traditional login form -> unlink the Facebook account -> Link the Facebook account again.

    Best regards,
    Laszlo.

    Thread Starter zebrastribe2

    (@zebrastribe2)

    Thanks a lot.
    I have activated the new and it works now.

    How can I get a signup flow where the email is required on signup?
    And where the email is NOT the username?

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @zebrastribe2

    Make email required on signup
    On the provider’s end it is not possible to force the user to share their email address. So if a Facebook user decides not to share his/her email address, then we won’t be able to get the email address from the provider.

    Note: In the Pro Addon we indeed have options to ask email address from user input in these cases, however on this forum we are only allowed to discuss questions and problems related to the Free version. So if you are interested in that premium feature, then please rather open a support ticket here:

    “Email is NOT the username”
    We don’t use the email for username generation, but we rather try to generate a unique username from the First name and Last name that comes from the provider.
    Here it is important to mention that, WordPress doesn’t allow special characters ( such as Cyrillic, Arabic, Kanji, Hebrew, etc ) in usernames. So if the first name and last name contains such characters, then we won’t be able to generate a valid username, which means we will need to generate a unique and random username instead.
    If you want to avoid randomly generated usernames, then in the Pro Addon we also have options for asking the username before the registration in these cases, too.

    Best regards,
    Laszlo.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.