Topic-icon Is it possible to link Joomla user to FB profile directly?

Active Subscriptions:

None
Hi,

I want to have a full FB integrated joomla site and would want to be able to click on a user avatar or name, and redirect me to the user FB's profile page.

Is that possible with JFBC?
The topic has been locked.
Support Specialist
Yup. There's a "User Map" section in the admin area of JFBConnect. This view shows the Joomla user's name and their Facebook ID. If you click the FB Id, it will take you to the user's profile.

We don't show the user's avatar there, but if you integrate with one of the other profile systems (JomSocial, CB, etc), the avatar can be imported there.

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

None
Thanks for the quick reply.

I was referring more to the front end. For example, I'm using Jreviews and each reviews got a user avatar (in this case it's Jomsocial's). I'm thinking to uninstall Jomsocial completely, and use FB connect such that the user avatar will be pulled down and appear on the review, and also clicking on the user avatar will bring me to the user's FB page.

Is that possible?
The topic has been locked.
Support Specialist
No, JFBConnect doesn't store profile information directly. It uses other profile systems, as there's plenty out there and a lot of other extensions already integrate with them. We focus on Facebook integration, but for profile integration, we let other's who focus on display and that type of thing.

With that said, however, Joomla 1.7 now comes with a profile plugin built in. We already support it partially, but we'll be releasing integration to automatically import into those fields later this year, which we're hoping that other extensions will start using to pull profile data (just like they do with JomSocial, CB, etc). Unfortunately, the User Profile plugin doesn't currently support avatars. We're very hopeful that it will in Joomla 2.5 (due in January) or shortly thereafter, as once it's there, that will likely become the main profile system that everything integrates with.. which will make us very happy :) It's possible there's already another plugin that adds avatar support to J1.7 that's gaining steam, but I'm not aware of it... it shouldn't be that difficult, in all honesty.

Hope that explains.. but in short, no, we don't do what you're looking for.. yet. We agree though that JomSocial is overkill for just profiles, which is what a lot of sites use it for.

Alex
The topic has been locked.
Active Subscriptions:

None
Thank you buddy!

This helps alot!
The topic has been locked.
Support Specialist
No problem. If you do decide to describe, we obviously have good support.. and integration with the Joomla profile system is high on our radar, so would be all over helping you out. Even if that's not the route you take, we'll do what we can to get you setup how you want!

Best wishes,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex,

I'm re-visiting this topic again.

I'm thinking if on the backend you can manage to capture the FB profile link. Is there anyway we can code to make it such that this link be used to redirect JS profile to FB profile page on the front end.

So basically JS is used purely for display avatar but clicking on it brings you to the user FB profile instead of JS profile. Just like the facepile social plugin. Clicking on the avatar brings it to FB profile page.
The topic has been locked.
Support Specialist
Christian,
Sorry for the delay in getting back to this. The user's Facebook profile can be reached at the following link:

www.facebook.com/profile.php?id=1234567


So, wherever the avatar is displayed, you'd need to update the current JomSocial link to use this link instead. To get the actual user's ID, if the posted from a Facebook user on your site, you'd want to use some code like the below. It first looks up to see if there is a FB ID associated with the commenter on your site, and if not, use the 'current' link, which would be to JomSocial. You could also just have no link if the first if portion fails:
require_once(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_jfbconnect' . DS . 'models' . DS . 'usermap.php');
$usermapModel = new JFBConnectModelUsermap();
$fbId = $usermapModel->getFacebookUserId($joomlaId)
if ($fbId)
   $link = 'http://www.facebook.com/profile.php?id='.$fbId;
else
   $link = JRoute::_('index.php?option=com_community&view=profile&id='.$joomlaId);

The above isn't exact, because I don't know where you'll use this.. or tested, but it should work and hopefully get you started on what you're looking for.

If you need more help though, just let us know!
Alex
The topic has been locked.