Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.4 on April 10, 2017.

Facebook Meta plugin failing to link to picture

 

Indexhibit version: 2.0
Thread is not resolved.

cyruscornut
FRANCE
3 year(s) ago
Permalink Post

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
UNITED STATES
3 year(s) ago
Permalink Post

Does your exhibit/page have any uploaded images?

cyruscornut
FRANCE
3 year(s) ago
Permalink Post

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
FRANCE
3 year(s) ago
Permalink Post

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

Vaska A
UNITED STATES
3 year(s) ago
Permalink Post

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

Show me...

cyruscornut
FRANCE
3 year(s) ago
Permalink Post

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
FRANCE
3 year(s) ago
Permalink Post

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
UNITED STATES
3 year(s) ago
Permalink Post

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

Vaska A
UNITED STATES
3 year(s) ago
Permalink Post

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
FRANCE
3 year(s) ago
Permalink Post

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

cyruscornut
FRANCE
3 year(s) ago
Permalink Post

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
UNITED STATES
3 year(s) ago
Permalink Post

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

support at indexhibit dot org

cyruscornut
FRANCE
3 year(s) ago
Permalink Post

E-mailed, thanks :)

NeilHerbert
UNITED KINGDOM
3 year(s) ago
Permalink Post

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.