Topic-icon Is there a way to alter or resize Image from Facebook Profile upon log

Active Subscriptions:

None
ok the module now brings in the pic perfectly that is an excellent edit... the pic comes in cropped and sized to exactly the way it should... however, I am working with EasyDiscuss and it seems that the avatar that is used by other components still have the avatar coming in oddly and what seems like is the raw facebook pic that is not cropped at all. is there other code that should be changed from which these components pull a picture from? or is this entirely based on their components?

thanks,
The topic has been locked.
Active Subscriptions:

None
I think this was the edit in the helper file and I can no longer find it. Can you describe where this function is located and has this updated been included?

thanks... I think this was it for the helper file.
The topic has been locked.
Support Specialist
Christian,
The v5.1 release will be out tomorrow with a huge laundry list of improvements, including this change for higher quality picture displays.

If you need to implement it now (or don't plan to update right away), this post above has the instructions on how to implement the change in the v5.0 release.

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

None
I should have mentioned to you as I thought you knew. You know what they say about assume.

I am using 5.1 and this is what is not working... I can't find the code in the helper file at all. and my page profile image is just a raw grab from facebook.
The topic has been locked.
Support Specialist
Got confused myself. The update is in v5.1 to display the avatar from Facebook with the height/width dimension you specified in the SCLogin module parameters. Previously, we'd show the avatar from Facebook using one of their own pre-defined quality settings, which had some odd issues (non-square in some cases, grainy picture, etc).

So, you should be getting a picture that adheres to the width/heigh parameters you've sent in the SCLogin module and it should be very clear.

Can you let me know what you're seeing, what you're expecting, and where things are going wrong?

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

None
Ok, so i have installed everything and the picture that comes from my facebook is supposed to be 145 x 155... its coming in much much larger than that and at the full length as well...
The topic has been locked.
Support Specialist
You sir, have found a bug. Well done! Please edit the /components/com_jfbconnect/libraries/profile/facebook.php file. At line 239, you'll see:
$avatarUrl = 'graph.facebook.com/' . $providerUserId . '/picture?width=' . $width . "&height" . $height;
There needs to be an = sign after the height parameter, which is missing. Please update that to:
$avatarUrl = 'graph.facebook.com/' . $providerUserId . '/picture?width=' . $width . "&height=" . $height;
Let us know how that goes, and thanks for the report!

Alex
The topic has been locked.
Active Subscriptions:

None
that didn't work
The topic has been locked.
Support Specialist
Alright.. just tested with a really long image. In addition to the = sign I had you add above, also modify the /mod_sclogin/helper.php file. Around line 201, you'll see:
$avatarURL = $provider->profile->getAvatarUrl($providerId, true, $params);
Change that 'true' to 'false':
$avatarURL = $provider->profile->getAvatarUrl($providerId, false, $params);
Keep me posted on how that works for you.

Thanks,
Alex
The topic has been locked.
Support Specialist
The new release is available now with this and a very few other minor changes since the last beta release we pushed. Please feel free to update and let us know if you still experience any avatar weirdness.

Thanks again for all your help and feedback,
Alex
The topic has been locked.