Problem: My site is producing the correct og:image URL (checked it in the source code for the page), but FB is, for some reason, picking up my logo at the og:image. (For every post)
The FB Sharing Debugger says “The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.” The problem is, the property IS explicitly provided, as shown in the code.
Update – Even when I go into an individual post and add the featured image to the “FB card” in the side panel, I still get the site logo in the FB post. All the other shares work fine.
Update: I tried down-revving the theme (to multiple versions ago), and the problem was still there.
I then tried changing to a different theme, and the problem was still there.
But here’s the thing: Sometimes, as I was testing, the problem went away. I thought “Aha! It’s this version that has the problem.” But the next time I tested, the problem was back.
I tried incognito windows and regular, across three different browsers.
At this point, I’m stumped.
Note that I do not have access to the back end, so I can’t test if this is a caching problem of some sort. (Which would make all the testing pretty much useless, since I can’t refresh the server’s cache of the site after changing themes.)
Thoughts welcome. I’m going to examine the two versions I tested first, to see if I can see something that might be causing this.
Bruce, Facebook caches results, so you aren’t going to see a change immediately, if you’re just trying to share the post normally.
The tool you’d want is this one:
(and I’m cracking up that THAT page doesn’t have all it’s og tags set!)
Be sure to tell it to rescrape (an option on the results page).
I think the “style tag too big” idea has some merit - and it’d be easy to test. Drop everything in that style tag into a css file, and replace with a line that loads that css.
(Alternately, move the partial that contains the css to below ghost_head, but note that this will mean your code injection header will get applied before most of the css loads, so the theme’s css will overwrite your code injection css if you don’t have enough specificity.)