Facebook picture size after like

  • Posts: 6
  • Thank you received: 0
11 years 7 months ago #128810

Hi,

We put the facebook like button on our shop but when people like a item the picture on facebook is to large so facebook will not show the picture total. Is't possible to let facebook use a smaller picture?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #128864

Hi,

What can be done is to edit the plugin "plugins\content\hikashopsocial" file "hikashopsocial.php" function "_getImageURL()" and in this function change the path of the "$uploadFolder".

For example, change:

$uploadFolder = ltrim(JPath::clean(html_entity_decode($config->get('uploadfolder','media/com_hikashop/upload/'))),DS);
To:
$uploadFolder = ltrim(JPath::clean(html_entity_decode($config->get('uploadfolder','media/com_hikashop/upload/fb/'))),DS);
and put the resized images in the folder "media/com_hikashop/upload/fb/" with the same name than the main product image.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
11 years 7 months ago #129003

Thanks for your reaction, but I changed it how you writed but the picture on facebook stays not in shape.
The picture size that's in the fd direction is 200px high?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #129068

Hi,

Have you put a smaller image in the created folder ?
I don't really know how Facebook manage the images, it's maybe a ratio problem.
You need to crop the pictures to have a 4:3 instead of a 16:9 for example.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
11 years 7 months ago #129093

Hi,

I think the problem comes true the size of the recomand on facebook. The size is square or 4:3 and not 16:9
The picture size I uploaded is 90x90 pix so that can't be the problem anymore.
Do you know how I can change the size or way that Hika snet the recomand to facebook?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #129369

Hi,

All the interactions with facebook are in the plugin "plugins\content\hikashopsocial\hikashopsocial.php"
The needed functions are "_addFacebookButton()" and "_getImageURL()"

The image link is stored in the variable "$imageUrl".

Please Log in or Create an account to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum