× Joomla Facebook Connect support forum

Topic-icon [SOLVED] Users (randomly) not autoapproved when using JFBConnect

Active Subscriptions:

None
One of our sites relies heavily on JFBConnect for new users' registration. We are getting a strange bug where users are not autoapproved, despite having the correct Community Builder setting. Users get an activation email with a blank activation link.

Most maddening of all, we can't reproduce the bug consistently. It seems that users that reject the Write to Wall permission are getting the error, but not all the time.

Site can be checked at consalud.signalis.cl.

Any help will be greatly appreciated.
The topic has been locked.
Support Specialist
That's not good. We're currently working on some decent changes to the CB plugin for these types of reasons to handle activation better when required. Until then, we should hopefully be able to get you around the issue. I'm assuming, from the above, that you have Skip CB Activation enabled, but if not, let me know.

The main time that activation might not be properly skipped is if some fields are marked as required in CB that aren't being properly filled in from Facebook. If this is an intermittent issue, I'd guess that something like "Activities" that you're trying to import from Facebook is marked as a required field in CB. If the user doesn't have this field filled out in Facebook, they return a blank field. We import this blank field, and CB is unhappy since a required field is missing. For a similar description, also see:
www.sourcecoast.com/extensions/jfbconnec...s#CB-required-fields

So, to start, please try to disable any required fields (including Avatar) from CB. With the 3.2 release, we're working on a way to automatically add required fields to the Login/Register page (if you're using Full Joomla Users).

Alternatively, since you say the "Reject writing to wall" permission seems to be at fault, if you have "Profile Permissions" as optional as well, when they reject writing to the wall, they would also be rejecting the profile permissions. In this case, it would be the same as if the profile field was blank.

Hope some of this gets you started, but if we're chasing down the wrong issue, just let us know and we can start again. Sorry for the troubles!
The topic has been locked.
Active Subscriptions:

None
Thanks, Alex. Yes, we do have Skip CB Activation enabled.

I will try leaving all fields optional as a workaround. Let's see if that works for now.

Bernardo.
The topic has been locked.
Support Specialist
Definitely let us know how it goes. Again, we're working on improvements to all the profile plugins, but CB in particular. There's so many different ways to configure CB, and many of those settings overlap Joomla features, which makes our lives more tough. Either way, we want our support to be 100% for it, so if you run into any other issues, or the above doesn't help, we want to know.

Thanks!
The topic has been locked.
Active Subscriptions:

None
Nope, no luck. Users now can login, but they still appear as not approved, cannot update their profiles, and cannot be approved from the admin backend.
The topic has been locked.
Support Specialist
From what you're describing, it's definitely a case of the user not being saved correctly in Community Builder.

Would it be possible to send us a super admin account for your site so we can look at your configuration and the issue further? Would love to get more details so we can try to implement work-arounds for you (now) and JFBConnect 3.2 (later). You can PM the details to us by hitting the arrow under my name (<---) and clicking the mail icon. If you can't do that, post a link to your site so we can go through the registration process. Sometimes we can debug issues just from that.

Thanks!
The topic has been locked.
Active Subscriptions:

None
A bit more information: now all new registrations have this problem. We can solve the problem by manually synchronizing users (CB -> Tools -> Sync users). The result is that new users are added to the users table, and everything is peachy for those users.

Of course that this is not scalable - our site is going live in a week and we expect loads of users.

Any ideas? I created the acct you requested.

--Bernardo
The topic has been locked.
Support Specialist
No, that's not scalable, and if you have to do that, it's a dead-ringer that the User isn't being properly saved into CB. Again, this is almost always due to required fields, but it could be something else I'm sure (depending on your CB configuration settings).

I'll try to get into the site tomorrow and poke around to let you know what we find, and sorry for the troubles.
The topic has been locked.
Support Specialist
Bernardo,
I just tried to log into the admin area of the site, but the credentials you sent are only for a front-end user.

I also tried to register, and got stuck during the process. Right now, when I register for the first time, I'm brought to the CB home edit profile page where my username is fb_1234 (Facebook Only user) and it asks for some more profile information. Whenever I try to submit this, I get "UT : Por favor introduzca su RUT válido, incluyendo dígito verificador.". I've filled out every field, but I don't know the language :)

Can you explain how you have registration setup a little more? Do you simply have the new user registration redirection set to go to that page, or is there something else sending the user there? If we can get our account upgraded to Super Admin, that will help.

Thanks, and sorry for the delay.. we'll get you fixed up though.
The topic has been locked.
Active Subscriptions:

None
Alex,

I think we figured it out. We had added a username field validation regex to check for a valid National ID (the "RUT"). Usernames of the form fb_* did not match, and registration failed spectacularly, even though every field was optional.

We had to tweak CB so users coming from the FB registration do not have their username regex'd.

We are still testing this. Will keep you posted. You may want to consider this borderline case for the next release. I am still not sure why some users were rejected and others were not.

--Bernardo.
The topic has been locked.