Forums / Cotonti / Extensions / Facebook Opengraph doesn't show images

Ross
#1 2012-09-04 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 2012-09-04 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 2012-09-04 20:59

Yes, it is enabled.

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

Trustmaster
#4 2012-09-05 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 2012-09-07 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.

 

 

This post was edited by Ross (2012-09-07 08:15, 11 years ago)
Trustmaster
#6 2012-09-07 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 2012-09-07 13:23

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

I love COTONTI! cool