Форуми / Cotonti / Extensions / Facebook Opengraph doesn't show images

Ross
#1 04.09.2012 18:56

In Siena 0.9.11 I installed Opengraph plugin - version for Siena. My problem is, it doesn't show any image if I click the share or like button.

Trustmaster
#2 04.09.2012 19:21

Have you enabled "Scan for an image in page text" option in plugin configuration?

Another question: how recently did you download the plugin? I fixed a related bug 3 months ago in this plugin.

May the Source be with you!
Ross
#3 04.09.2012 20:59

Yes, it is enabled.

I downloaded it this afternoon. This one: https://github.com/trustmaster/cot-opengraph/zipball/master

Trustmaster
#4 05.09.2012 09:05

Thanks. Is there an example page link so I could have a look what meta tags OpenGraph plugin defines there?

May the Source be with you!
Ross
#5 07.09.2012 07:37

I installed it again and again - now it seems to work! I didn't change anything in my installation. Go guess...

Added 38 minutes later:

I found out the problem. It happened to be in my code.

 

The links of the images in my pages where like:

<img src="../../../../images/folder/subfolder/image.jpg"

and that was giving a mistaken in:

<meta property="og:image" content="http://website.com/../../../../images/folder/subfolder/image.jpg"/>

I fixed the links in

<img src="images/folder/subfolder/image.jpg"

so now it gives:

<meta property="og:image" content="http://website.com/images/folder/subfolder/image.jpg"/>

and it works.

 

 


Відредаговано: Ross (07.09.2012 08:15, 11 років тому)
Trustmaster
#6 07.09.2012 08:20

Good to know it works. That may be a helpful hint for others too, thanks!

May the Source be with you!
Ross
#7 07.09.2012 13:23

Yes, I wrote it just to be useful to the community smiley

I love COTONTI! cool