× Joomla Facebook Connect support forum

Topic-icon Jomsocial Field mapping

Active Subscriptions:

None
14 years 2 months ago #20878 by fb_100000532508192
Hi would it be possible to import facebook data to non-reqired fields of jomsocial. The reason i ask is that to make the registration process quick i don't want to ask for all that data. But if the user is logging directly via facebook then i would like to auto pull that data. Do you have any suggestions?

many thanks in advanced.
The topic has been locked.
Support Specialist
14 years 2 months ago #20889 by alzander
Replied by alzander on topic Jomsocial Field mapping
Phil,
In the Profiles area of JFBConnect, you can import Facebook profile fields into any fields of JomSocial, required or not. We have an extra option to additionally show required fields during the registration process if you'd like to have the user be able to fill those out (in case you can't import that info from Facebook).

As for auto-pulling data, we'll fill in the profile fields you 'map', JFBConnect will do that automatically. If you have the "User Creation" setting of JFBConnect set to "Facebook User Only", the Joomla account will be created automatically (no registration form) and that info will be pulled from Facebook. If that setting is configured to "Joomla User Only", we'll pull what information from Facebook we can, and the user will see the registration form to fill in the rest.

Hope that helps, but if you need more info, just let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20904 by fb_100000532508192
Hi Alex,

Thank you for your promt reply. I have resloved the issue now by changing the code where the plugin(jfbconnect) scans the jomsocial db table basesd on type. This was highted in another post. Another problem related to this: Which is the cleanest way to import and change birthday date format into jomsocial?

thanks in advanced
The topic has been locked.
Support Specialist
14 years 2 months ago #20926 by alzander
Replied by alzander on topic Jomsocial Field mapping
Phil,
Birthday imports is actually planned for the v4.2 release, in April. We haven't investigated the best way to do it yet, or I'd tell you how to right now. Hopefully you can wait a few weeks for a solution, but if we figure something out sooner, I'll post back here when we do.

Thanks,
Alex
The topic has been locked.
Support Specialist
14 years 2 months ago #21173 by alzander
Replied by alzander on topic Jomsocial Field mapping
Phil,
Wanted to circle back on this post. We just implemented birthdays in the JomSocial profile plugin for the upcoming release. It was much, much simpler than we anticipated since we already supported "Date" fields from JomSocial. Feel free to make the 2 minor changes below, test, and let us know how it goes!

Edit the /plugins/jfbcprofiles/jomsocial.php file. Around line 343, change:
if ($type == "date")
to:
if ($type == "date" || $type == "birthdate")

And around line 450, change:
$query = 'SELECT * FROM #__community_fields WHERE type="text" OR type="textarea" OR type="date" ORDER BY ordering';
to:
$query = 'SELECT * FROM #__community_fields WHERE type="text" OR type="textarea" OR type="date" OR type="birthdate" ORDER BY ordering';

Let us know how that goes and if you run into any issues. Again, this will be in the 4.2 release, coming out later this month.

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

None
14 years 2 months ago #21198 by fb_100000532508192
Thank you Alex, it works a treat!
The topic has been locked.
Support Specialist
14 years 2 months ago #21212 by alzander
Replied by alzander on topic Jomsocial Field mapping
Glad to hear that got you going. That change, along with a bit of other improvements for profile importing, will be in the 4.2 release later this month.

Good luck,
Alex
The topic has been locked.