Og variable: image in tumblr text messages?

I searched on StackOverflow and other sites, but I did not find a definite answer of yes or no, if possible.

I am getting Facebook Open Graph technology and I want to have a variable image between posts on my Tumblr. The problem is that I usually only do text messages, and Tumblr doesn't seem to allow me to specify Open Graph images for each message. Tumblr deletes the meta tag if I try to put it in a message, and Facebook doesn't seem to recognize the tumblr tags, such as {PhotoURL-500} or {Photoset-500} in the og: image tag.

Currently an og image: currently displayed to display the site logo, which becomes repetitive, but without it, Facebook usually does not scratch the correct image. Is it possible to install og: image for individual Tumblr text messages?

+4
source share
1 answer

Text messages do not have images registered in them that you could call using themecode, for example {PhotoURL} . If the in-post meta tags are removed, I don't think there is another option.

You may be able to hack something along with the second {block:Posts} loop in <head> , but this will not work on pages with a permalink.

0
source

Source: https://habr.com/ru/post/1437718/


All Articles