Topic-icon CB social plugin in not getting the profile pic I need

Active Subscriptions:

None
I need the plugin to retrieve the FB 160x160 square profile pic. I know the following graph call gets the pic I need:

graph.facebook.com/allan.mcnaughton/pict...width=160&height=160

I'd like to modify the plugin (and share the changes back with you) but have a question. The following library routine calls a function, getAvatarURL, I cannot find anywhere (even by greping the entire Joomla source tree).

What file does $this->profileLibrary->getAvatarURL() reside in?

protected function importSocialAvatar()
{
jimport('joomla.filesystem.file');
jimport('joomla.utilities.utility');

$avatarURL = $this->profileLibrary->getAvatarURL($this->socialId, true);

I'd also like to change the CB Profile config interface so the user can select the picture size /type.

I don't mind making these changes but would appreciate it if you could incorporate them into the codebase. They just make your library more functional.

Allan
The topic has been locked.
Support Specialist
The file that you're looking for is /components/com_jfbconnect/libraries/profile.php. We don't use the Graph API to fetch the avatar, we use the Rest calls which have other advantages. The picture size we pull from Facebook is 'big_pic', which has the following description:

The URL to the largest-sized profile picture for the user being queried. The image can have a maximum width of 200px and a maximum height of 600px. This URL may be blank

You can see other picture sizes available on the User FQL table information page.

So, the picture JFBC downloads should be largest one available. Once fetched, we have CB resize the image according to the dimensions in your CB configuration. If you're getting a distorted or fuzzy picture, your CB settings may be too low.

I hope that helps explain, but if you need more assistance, let us know what's going wrong (why you want to change things) and we may be able to help explain more or fix something if there is indeed an issue.

Thanks,
Alex
The topic has been locked.
Support Specialist
Oh, I'm not sure exactly what you mean by:

I'd also like to change the CB Profile config interface so the user can select the picture size /type.

The profile picture dimensions are set by the admin, not the user, since you know your template and where the avatar would be used. Not sure how the user on your site would (or should) be able to configure that.

Alex
The topic has been locked.