CB social plugin in not getting the profile pic I need

CB social plugin in not getting the profile pic I need

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

http://graph.facebook.com/allan.mcnaugh … 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

allmcn
Allan
useravatar
Offline
9 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: CB social plugin in not getting the profile pic I need

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24100 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: CB social plugin in not getting the profile pic I need

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24100 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11662
Total Polls:
0
Total Posts:
48978
Posts today:
6
User Info
 
Total Users:
47788
Newest User:
oliverpreissner
Members Online:
0
Guests Online:
810

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program