I have a page where, for reasons beyond my control, I do not have access to the HEAD (business issues).
The thing is that I currently have the load of og:image
done by a JQuery call:
$('head').append('<meta property="og:image" content="<%=urlImagen%>">');
I see in the generated source code that if it appears to me but when passing it through the Facebook debugger it gives me the following error:
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
The thing is that I do not know if it is possible (according to W3S it is not advisable but it gives me a little bit the same) to put the goal directly in the body.
The thing is that until I reached a production environment I could not prove it and I'm afraid to pass it and make it fail so I would like to know if anyone can give me an answer.
Similar example:
<html>
<head>
...
include de jQuery
...
</head>
<body>
...
$('head').append('<meta property="og:image" content="https://upload.wikimedia.org/wikipedia/en/9/99/MarioSMBW.png">');
...
</body
</html>
The thing would be to know if thus adding the goal in this way facebook or twitter would recognize it. In the view generated source I see that it includes me well the goal within the head, but it seems that no facebook is not able to read it. The thing is to know if I can wear that inside the body or not because the goal MUST go in the head but I do not know if putting them in the body would detect them.