Page 1 of 1
Facebook link thumbnail image
Posted: 29 Oct 2012, 11:51
by L3th
I have an problem with the thumbnail Facebook is showing, when I send an link to my web side to someone on Facebook.
Facebook is showing a thumbnail picture from a password protected folder.
Is there a way to change this, so I can choose which image Facebook Is using as thumbnail ?
I am currently using version 2.8.4
Re: Facebook link thumbnail image
Posted: 30 Oct 2012, 23:13
by mjau-mjau
That is assumedly because the first folder Imagevue finds in your gallery, happens to be a passworded folder. You can manually edit the default Facebook share picture though ... Open the file
iv-includes/templates/default/index.gallery.phtml, line 23:
<meta property="og:image" content="<?php echo pageURL().htmlspecialchars($this->firstImage->thumbnail); ?>?<?php echo htmlspecialchars($this->firstImage->getThumbnailMTime()); ?>" />
... change to ...
<meta property="og:image" content="http://domain/path/file.jpg" />
Simply add an absolute path to the image on your web server. It does not have to be a thumbnail, in fact its better if its not because Facebook recommends minimum 200 px width/height.
Re: Facebook link thumbnail image
Posted: 04 Nov 2012, 16:06
by L3th
It solved the problem, thanks for your help

Re: Facebook link thumbnail image
Posted: 20 Nov 2012, 13:11
by margouillat
did not work for me sniff....

Re: Facebook link thumbnail image
Posted: 21 Nov 2012, 00:33
by mjau-mjau
margouillat wrote:did not work for me sniff....

Give me a link, and I will give you a diagnose.
Re: Facebook link thumbnail image
Posted: 21 Nov 2012, 07:05
by margouillat
ereything seem to be ok now
thanks

Re: Facebook link thumbnail image
Posted: 23 Jan 2014, 23:22
by EtienneOuellet
Tried to change the code for the first image... didn't work for me...
Help please
Re: Facebook link thumbnail image
Posted: 24 Jan 2014, 22:58
by mjau-mjau
EtienneOuellet wrote:Tried to change the code for the first image... didn't work for me...
After you changed the code and refreshed your page, go here add your gallery link and check the result:
https://developers.facebook.com/tools/debug/
Normally, you need to force Facebook to empty its cache also ...
Re: Facebook link thumbnail image
Posted: 25 Jan 2014, 09:54
by EtienneOuellet
I tried the Facebook debugger. It fetches the right link in the code but it says the image is to small and is going to use another thumb instead. The image is 1000px wide! How do I force Facebook to refresh its cache?
EDIT : Works now! Don't know how it refreshed... Well... Thanks!