Publicizing doesn’t take from og:image meta
-
Hi, I’m trying to force Twitter & Tumblr to use a specific image.
I filtered jetpack_open_graph_tags with a custom function that sets the og:image to my own image. This works fine. When checking the source of my post, the meta is set to the one I intended. It also works on Facebook.
However, when posting to Tumblr & Twitter, it STILL uses my featured image instead of the og:image meta.
- a) I’ve attempted to set the default image to this picture, even if there is $media. It is still my featured image.
- b) I’ve attempted to set the og:image:width and og:image:height to my intended image’s width/height, however it seems to be pretty random that jetpack actually adds width/height, and if it does add width/height it’s still the same as my featured image and I don’t know how to change it. I tried using the same unset method as I used to change the og:image, but it didn’t work.
- c) As for Facebook, the intended image displays when being publicized, even when og:image:width and og:image:height are of the featured image’s dimensions.
EDIT: I found that twitter is using the featured image because of the twitter:image tag; again I am unsure of how to change/override this as the same technique with og:image doens’t work.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Publicizing doesn’t take from og:image meta’ is closed to new replies.