Facebook Meta plugin failing to link to picture

cyruscornut / 2014-09-13 19:02:56   

Using Indexhibit 2.0.1 with Facebook Meta v1.0, and clean url enabled.

The FB meta plugin seems to fail to fill the path in the "og:image" that Facebook can use. "og:description" is filled properly so I know that the plugin is running.

  1. I tried to trace through the PHP code by emitting comments in the HTML output and it seems like
  2. if (!empty($OBJ->vars->images))
  3. never succeeds, aka empty() always returns through.

Note sure what to do or how I could debug the problem further.

Vaska A / 2014-09-13 20:17:38   

Does your exhibit/page have any uploaded images?

cyruscornut / 2014-09-14 07:44:46   

Yes we have a logo on the upper-right which is showing on Facebook. So I guess the plugin is taking the first image used by the page?

cyruscornut / 2014-09-14 07:48:46   

If I remove the title logo the plugin stills fails to fill the "og-image" field (it is empty).

Vaska A / 2014-09-14 09:58:58   

What? A Facebook logo from the plugin? It doesn't do that...

Show me...

cyruscornut / 2014-09-14 12:52:42   

We have a logo (the site name) on the upper-right on our site
With the plugin enabled this logo sometimes appears in the thumbnail displayed on FB when we try to share individual photo pages on FB.
But the photo itself never appears in the thumbnail on FB.

If I remove the logo from our site (so it doesn't use image as part of its base template) the photo still don't appear in the thumbnail on FB

cyruscornut / 2014-09-14 12:54:37   

This is an example of a page on the site:
cyruscornut.com/cities/--travelling-to-the-outskirts/…

When you "share" it on Facebook, Facebook doesn't show a thumbnail for the photo.

If I look at the page source

  1. <meta property="og:description" content="Travelling to the outskirts" />
  2. <meta property="og:image" content="" />

The plugin setup the "og:description" field but "og:image" is still empty.

Vaska A / 2014-09-14 14:20:55   

You don't have the Facebook plugin installed - I don't see any og: at all.

Vaska A / 2014-09-14 14:22:19   

Woops, there it is...I see it.

I'll add this to the list of bugs to look at. I actually thought I had deleted the Facebook plugin from our site because of the backlash that happened after I released it. I completely forgot it was there...

cyruscornut / 2014-09-18 09:20:24   

It would be useful to have the feature, considering how widespread social network area. Thank you.

cyruscornut / 2014-10-09 13:54:12   

Could you give me a pointer a the data structure to look for to find the right URL and modify the PHP code?
It looks like a fairly trivial patch and rather bang-for-the-buck.

What backslash happened when released? It seems like a necessary feature in those day and age. I'm sure it'd take 15 minutes to someone who know the codebase to fix it.

Best.

Vaska A / 2014-10-09 14:09:01   

Can you send me the plugin you used and I'll see what I can whip up quickly...

support at indexhibit dot org

cyruscornut / 2014-10-09 20:34:49   

E-mailed, thanks :)

NeilHerbert / 2015-06-11 18:56:14   

Hi Vaska and Cyrus. I also have the same issue did you guys ever get this sorted out. My site is neilherbert.co.uk if you need it.

Many Thanks.

This thread has been closed, thank you.