Also, I'm not sure if the error stems from the parameters sent to kEmbedCodeGenerator() or if it also might be the meta-tags for which some is using http instead of https.
<meta property="og:image" content="<strong>http:</strong>//host.dmain... <br/>and<br/><meta property="og:url" content="<strong>http</strong>://host.domain...</p>