By Kymo Biddulph on Thursday, 08 February 2018
Posted in General
Replies 3
Likes 0
Views 566
Votes 0
Hi - is this still the best fix for this issue of sharing from the Activity stream to FB and not have the Avatar image render in the post/share to FB because it is less than 200x200?

Also why does the share refer to the site and not the poll it is sharing?

https://stackideas.com/forums/avatar-size

cheers
Hey Kymo,

With the latest version, it now uses the cover as the opengraph image since 99% of the time, avatars would be smaller than 200x200
·
Thursday, 08 February 2018 20:56
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Mark

I guess a poll not related to anything but a user can only use the Avatar of the user as an image for a poll share.

But should it not at least share the name and description of the poll, since that is what is being shared?

The avatar folder in /media/com_easysocial/avatars/users/309 also has a large version, how can I get opengraph to choose that image instead of the one which is too small?

cheers
·
Thursday, 08 February 2018 21:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kymo,

For the avatar large version also only 180x180px only.

What do you think if this following 2 method can work for you?

1. Modify this constants.php file JoomlaFolder/administrator/components/com_easysocial/constants.php

define('SOCIAL_AVATAR_MEDIUM_WIDTH', 200);
define('SOCIAL_AVATAR_MEDIUM_HEIGHT', 200);


But this changes will not affect those existing users, because those avatar image already resized to 180x180px.

Unless those user re-upload their avatar image, so the system only resize to 200x200px.

2. Modify on this file JoomlaFolder/media/com_easysocial/apps/user/polls/polls.php

// LINE 87
$item->addOgImage('http://customimage.com');

Add a default image for this poll item, so Facebook will use this image display on the stream.
·
Friday, 09 February 2018 13:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post