Topic-icon Community Builder API

Support Specialist
14 years 3 months ago #19865 by alzander
Replied by alzander on topic Community Builder API
Simon,
Woah! Very sorry for the delay in getting back to this. It seems to have skipped out of my to-do list somewhere along the way.

Are you still working on this? I'm glad you found that the events were being called. We couldn't recreate what you were seeing before, so that helps get us on the same page. As for your questions:
The Password, may be handed off to CB but you may have to look for it differently. If you're using the "Facebook User Only" setting, it's definitely not handed because there is no Joomla user password that goes with it. If you're using "Full Joomla User" it may not be coming in the $cbUser variable (not sure), but if it isn't, you can fetch the entered password by checking JRequest::getString('password'). That will only work during registration though.

With that said, and since you may not be able to get the password at all, more explanation of how you're syncing to your other DB may help. If possible, the best to do would be to map a row in your other database to the user ID in Joomla. Then, when a login happens in Joomla, you simply tell the other DB that the user is logged in.. bypassing authentication altogether which is already happening in Joomla. Not sure if that's possible, or makes sense, but hopefully helps.

Again, sorry for the delay, and should you still be wrestling with this and need help, please let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20022 by simcro
Replied by simcro on topic Community Builder API
I have taken your suggestion and rewritten the entire API in the Joomla core framework rather than CB. The problem lies in the fact that when someone registers on the site thru facebook there is an initial joomla core only registration followed by an update followed by a CB update call. All joomla error messages are suppressed which makes it difficult to debug without writing loads of joomla framework notices to follow the code (which I ended up doing).
Still not perfect as I really need a pre login/register check for CB extended fields which the joomla framework does not really cater for but I guess that is my requirement rather than a faulty standard. anyway this thread can be closed and thanks for great support.
The topic has been locked.
Support Specialist
14 years 3 months ago #20030 by alzander
Replied by alzander on topic Community Builder API
Simon,
Just responded to your other post as well. I understand why CB errors wouldn't display, but not sure why Joomla ones are being hidden. That's definitely not normal.

I'm glad to hear you got this going, but should you need to refine it further, or need other help, just let us know,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20113 by petnet
Replied by petnet on topic Community Builder API
Hi Alex

I've been reading this discution between you and Simon about CB login and JFBC login.

I am trying for several weeks to get an extension that allows me to introduce more fields into the registration form, such as birth day first name newsletter checkbox and other preferentials.

I've seen that CB registration can do this type of registering form, but as far as I see, it is not easy to syncronize JFBC with CB registering.

I am just a simple user, not a programmer. What would you suggest? Should I use some other extension than CB or not. After all maybe it not so complicated to sync these two programs?
The topic has been locked.
Support Specialist
14 years 3 months ago #20115 by alzander
Replied by alzander on topic Community Builder API
Peter,
Our CB integration works very well out of the box. If you're trying to do extra things (hook into it, have extra CB plugins that need to function in a particular way, etc), you may run into trouble.. that's not the general case though. We have hundreds (likely thousands) of sites that use CB and JFBConnect together, and we test the profile import functionality very thoroughly, as it's the most common need.

With CB and JFBConnect, you can automatically import some information from Facebook into the user's account as well as adding additional fields to JFBConnect's registration page to ask for more information like you're looking for. Both CB and JomSocial are good options for this purpose. CB is free, JomSocial is not. If all you need is profile fields, CB is a good start. If you want a full blown community on your site, CB can do it, but we'd recommend JomSocial.

Hope that helps,
Alex
The topic has been locked.