Topic-icon Facebook profile information retrieving

Active Subscriptions:

None
13 years 3 months ago #31648 by simbec
Hi I'd like to know how I can make jfbconnect retrieve some user information from facebook during the new user registration process so that it autofills in the fields. I'm talking about information like name, email and birthday, ecc
The topic has been locked.
Support Specialist
13 years 3 months ago #31651 by alzander
Yes, absolutely. If you're using JomSocial, Community Builder, or any of the other extensions we support with our Social Profile, that feature is already implemented. If you have your own forms, or are using an extension that doesn't currently have a profile plugin for it, then you'd need to add some PHP to the view for that page to pull the user's info and pre-populate it.

Let us know what extension you're working with, the type of form you're trying to fill out (registration, contact us, submission for something, etc) and we can give a little code snippet that should help. You'd still need to do some development on your end though.

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

None
13 years 3 months ago #31658 by simbec
I dont want to install a big extension like jomsocial or cb just to add some fields to the registration form and retrieve them from facebook... But I was already planning to install virtuamart in the future, I could anticipate the installation if your virtuamart plugin includes this feature. Does it include it?
The topic has been locked.
Support Specialist
13 years 3 months ago #31668 by alzander
We already have a profile plugin for Virtuemart2. With that, you can easily create VM fields and then choose what data to import from FB into those fields.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #32409 by carlos.sandoval
Hi Alex, I need add some fields too.

I can see in developers.facebook.com/docs/plugins/registration/ some fields that I would use, I don't want install jomsocial or other component like this... I'd like to use my own form.
In ../components/com_jfbconnect/views/loginregister/tmpl/default.php at line 65 I see the "foreach" ( foreach ($this->form->getFieldsets() as $fieldset): ) with the fields information, but what is the file to send/set this fiels?

Can you help me please?

Thanks in advance.
The topic has been locked.
Support Specialist
13 years 2 months ago #32413 by alzander
Those fields in the default.php file are set either from the standard Joomla registration form, the User - Profile plugin (included with Joomla) or from our Social Profiles plugins.

If you want to store into your own database table, the best thing to do is create your own Social Profile plugin. You can copy something like the Kunena or K2 socialprofile plugin and update the code as necessary. With that, you can easily import any field from Facebook (or LinkedIn) into your custom table. Additionally, by using a socialprofile plugin, you won't be modifying JFBConnect directly, which will make sure that if upgrade the component your changes won't be lost.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #32424 by carlos.sandoval
Ok, I get it, thanks. :|
The topic has been locked.
Support Specialist
13 years 2 months ago #32433 by alzander
No problem. If you have any other questions or need help, just let us know. It's probably best to start a new topic though since I have a feeling your questions will be more specific and different than the original topic of this thread.

Thanks,
Alex
The topic has been locked.