Topic-icon Facebook fields not imported to JomSocial

Active Subscriptions:

None
14 years 9 months ago #12723 by keenmouse
This is a great extension, and I know I'll be happy with it once I get the kinks worked out!

Facebook login is working, but no fields are being imported into JomSocial. I'm probably missing something simple. I'll PM you my site and credentials. I'm using a new install of Joomla 1.7, JomSocial 2.2.4, and JFBConnect 3.4.1.

I had another issue that I managed to resolve, but I thought you might be interested. I've seen some reports of 404 errors in this forum that might have the same cause, which might be considered a bug in JomSocial:

I want new users to be redirected to JomSocial's Edit Profile page, but when I choose this item for New User Redirection, I get a 404 error, with Joomla reporting "Component not found". I see that the URL being redirected to is indeed the Itemid of the Edit Profile item in the JomSocial menu, but this doesn't seem to be the way JomSocial expects Edit Profile to be invoked. When I click Edit Profile on the JomSocial toolbar in the front end, it sends me to /index.php?option=com_community&view=profile&task=edit&Itemid=158. Itemid 158 is my main menu item for the JomSocial home page. I've worked around this by using Joomla's Redirect component. (With SEF turned on, I just redirect to /jomsocial/profile/edit, and then I don't have to change the redirect if I change the main menu item someday.)
The topic has been locked.
Support Specialist
14 years 9 months ago #12738 by alzander
Keenmouse,
I must say, I'm a bit confused too. Before we ever go into the admin area, we try things on the front-end first. When I did, my information was pulled in properly. You can see my profile below, which was completely filled out with JFBConnect (I didn't edit anything):
17.keenville.com/jomsocial/52:alex-sourcecoast/profile

If you're still having issues, can you tell me if you're testing with a brand new user or if you're logging in with a user that already existed? Currently, the Profiles area of JFBConnect has the "Always Import Profile" setting disabled, which means that only upon initial registration will the profile get imported. Subsequent logins will not import the profile data.

Hopefully, that's all that's wrong, but if not, let us know!

As for the redirection issue, good fix! The way we're doing the redirect works in about 95% of menu item cases, but there are a few that are broke, like you found (sorry!). We have a ticket to improve this in an upcoming release, but until then, you're redirect should be just fine.

Good luck, and should you run into anything else, you know where to find us.
Alex

P.S. Change the super admin password. We don't need access anymore.
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #12740 by keenmouse
That's ... weird. I've been testing with my own Facebook account, and I don't think there's anything unusual about it. I should have mentioned that it did bring in my name, avatar, and email address, but nothing else. I get the same results even after subsequent logins when I turn on Always Import Profile Data. Maybe I've been overlooking something when I remove my Joomla/JomSocial user to test again as a new Facebook user. Is there anything I need to do aside from deleting the User Map entry and the JomSocial/Joomla user?

Something else I'm wondering -- my JomSocial Gender field doesn't show up in the field mapping, presumably because it's not a text field. Is there any workaround for this that would still not allow users to be able to type whatever they want in the Gender field? If not, may I request this for the next version of the JomSocial plugin?

Thanks very much for your help!
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #12969 by keenmouse
Hi Alex,

Could you confirm for me whether deleting the User Map entry and the JomSocial/Joomla user is all I need to do in order to test again from scratch with the same Facebook user?

Thanks!
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #12977 by keenmouse
Okay, now I feel stupid. I just figured out the reason that nothing but my name and photo were imported from Facebook -- I have everything set to be visible only by friends! Duh.

I'm hoping there will be a way to link the JomSocial Gender field as a selector or radio button in a future version. :)
The topic has been locked.
Support Specialist
14 years 9 months ago #12985 by alzander
Keenmouse,
Very sorry for the delayed response.

For removing the user 'properly', all you should need to do is delete the user from the main Joomla User manager. JFBConnect and JomSocial both have user plugins which should then remove any extra information that they are storing about the user. Obviously, something to check is that both of those plugins are enabled.

As for the gender field, we normally don't allow importing into select or radio fields because the value returned from Facebook can be variable, and likely won't align to the field options you make available to your users. If you want to make a minor modification to show the field in the Mapping area of JFBConnect, you can try the code below. However, please make sure you test that the field is imported properly and doesn't cause issues.

In the /plugins/jfbcprofiles/jomsocial/jomsocial.php file, search for "getProfileFields". At the top of that function, you'll see a MySQL query. Update it as follows:
$query = 'SELECT * FROM #__community_fields WHERE type="text" OR type="textarea" OR type="date" OR type="select" ORDER BY ordering';

The thing you're adding there is the 'OR type="select" ' text. Then, in the Profiles area, you'll see Gender (and possibly other select fields) as option to import into. We wouldn't recommend importing into any of the other fields. As for gender, the fields that Facebook will return on "male" and "female". Those should be the options you have configured in JomSocial.

Hope that helps, but if you have any other questions, just let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #13096 by keenmouse
Thank you very much for your help. JFBConnect is a real quality product and your support goes above and beyond. I'll be submitting a 5/5 review on the JED.
The topic has been locked.
Support Specialist
14 years 9 months ago #13099 by alzander
Keenmouse,
Thanks for the kind words. Definitely hope we got you going, but if you still are running into any issues, don't hesitate to contact us!

As for the review, we look forward to seeing it and definitely appreciate your time doing so. Each one definitely helps us out!

Best of luck to you and your site,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #14470 by keenmouse
I've just submitted my review to the JED. It will appear under the username "Blagnint".

Thanks again for a great product and excellent support.
The topic has been locked.
Support Specialist
14 years 7 months ago #14474 by alzander
You're awesome! Thank you so much for the review. We really appreciate it and your overall support!

Thanks,
Alex
The topic has been locked.