Search…

X3 Photo Gallery Support Forums

Search…
 
L3th
Topic Author
Posts: 6
Joined: 04 Feb 2011, 11:02

Facebook link thumbnail image

29 Oct 2012, 11:51

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
jimmi Leth

www.lethcom.dk
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Facebook link thumbnail image

30 Oct 2012, 23:13

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:
Code
<meta property="og:image" content="<?php echo pageURL().htmlspecialchars($this->firstImage->thumbnail); ?>?<?php echo htmlspecialchars($this->firstImage->getThumbnailMTime()); ?>" />
... change to ...
Code
<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.
 
L3th
Topic Author
Posts: 6
Joined: 04 Feb 2011, 11:02

Re: Facebook link thumbnail image

04 Nov 2012, 16:06

It solved the problem, thanks for your help :D
jimmi Leth

www.lethcom.dk
 
margouillat
Experienced
Posts: 34
Joined: 31 Jul 2011, 09:20

Re: Facebook link thumbnail image

20 Nov 2012, 13:11

did not work for me sniff.... :cry:
Margouillat
loeildumargouillat.fr
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Facebook link thumbnail image

21 Nov 2012, 00:33

margouillat wrote:did not work for me sniff.... :cry:
Give me a link, and I will give you a diagnose.
 
margouillat
Experienced
Posts: 34
Joined: 31 Jul 2011, 09:20

Re: Facebook link thumbnail image

21 Nov 2012, 07:05

ereything seem to be ok now


thanks
:wink:
Last edited by margouillat on 21 Nov 2012, 07:08, edited 1 time in total.
Margouillat
loeildumargouillat.fr
 
User avatar
EtienneOuellet
Experienced
Posts: 46
Joined: 14 Mar 2011, 16:31

Re: Facebook link thumbnail image

23 Jan 2014, 23:22

Tried to change the code for the first image... didn't work for me...

Help please
Image
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Facebook link thumbnail image

24 Jan 2014, 22:58

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 ...
 
User avatar
EtienneOuellet
Experienced
Posts: 46
Joined: 14 Mar 2011, 16:31

Re: Facebook link thumbnail image

25 Jan 2014, 09:54

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!
Image