Tormy Van Cool
Tormy Van Cool

Reputation: 801

Facebook Open Graph: After have fetched new scrapes, the displayed existing scrape still wrong

I got the follwing issue:

in FB Debugger, I put the link to be refreshed. This is the page

Once have clicked on "Fetch new scrape information", I get the new data, totally correct.

I verify it into the field "When shared, this is what will be included". Not any error/warning occurred.

The issue is: when I click to "Show existing scrape information", I still get old data.

And worse: when I share the link, the old data are still shared :-/

I have not clue how to solve this issue ...

EDIT I also tried the solutions proposed here but all failed

EDIT 2 I give here some graphical example taken with Snipping tool Here what FB Debug fetched:

enter image description here

Clearly it says "when shared this is what will be included"

Then I try to share it and it seems good

enter image description here

but once posted

enter image description here

The description and title is totally missing

Thus back to Debugger and clicking on show "existing scrape" and i see that unfortunately, wrong data are kept

enter image description here

Upvotes: 0

Views: 520

Answers (1)

Tormy Van Cool
Tormy Van Cool

Reputation: 801

I think I found the solution.

the "bug" is into this line of my template:

 <meta property="og:image" content="https://i.ytimg.com/vi/{$video_code}/maxresdefault.jpg" />

were {$video_code} is changed by PHP with the code of the video, in this specific case NnoBLtPdW_E

This line, address to a picture YouTUBE generates, and it's the videothumbnail. When this line is into the metatag, which is out of my domain, FB seems dislike it and chooses to show directly the video,

without:

  • any alert
  • returning errors
  • and not during the fetching at all, nor the sending to the UI, but only once this is sent

Even trying to add the following tags:

<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />

it was totally useless

But removing the line "og:image" and adding a local thumbnail, solved the issue here the line solved the issue:

<meta property="og:image" content="http://www.melanie-music.net/{$directory_pictures}/{$song_dir}/vthumb.jpg" />

I do hope this experience will be useful to anybody else that faced out the same problem.

Upvotes: 0

Related Questions