- Posts: 6
- Thank you received: 0
Facebook picture size after like
12 years 11 months ago #128810
by Sanimedia
Facebook picture size after like was created by Sanimedia
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?
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.
12 years 11 months ago #128864
by Xavier
Replied by Xavier on topic Facebook picture size after like
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:
To:
and put the resized images in the folder "media/com_hikashop/upload/fb/" with the same name than the main product image.
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:
Code:
$uploadFolder = ltrim(JPath::clean(html_entity_decode($config->get('uploadfolder','media/com_hikashop/upload/'))),DS);
Code:
$uploadFolder = ltrim(JPath::clean(html_entity_decode($config->get('uploadfolder','media/com_hikashop/upload/fb/'))),DS);
Please Log in or Create an account to join the conversation.
12 years 11 months ago #129003
by Sanimedia
Replied by Sanimedia on topic Facebook picture size after like
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?
The picture size that's in the fd direction is 200px high?
Please Log in or Create an account to join the conversation.
12 years 11 months ago #129068
by Xavier
Replied by Xavier on topic Facebook picture size after like
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.
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.
12 years 11 months ago #129093
by Sanimedia
Replied by Sanimedia on topic Facebook picture size after like
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?
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.
12 years 11 months ago #129369
by Xavier
Replied by Xavier on topic Facebook picture size after like
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".
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.230 seconds