【发布时间】:2016-09-04 01:18:29
【问题描述】:
编辑:我找到了解决方案,但现在 cakePhp 本身存在问题
我正在使用:
<?php if (isset($image)) echo $this->Html->meta(array('name' => 'og:image', 'content' => $image)); ?>
它会生成
<meta name="og:image" content="https://test.com/img/sharer/startseite.jpg"/>
遗憾的是,Facebook 不喜欢末尾的 />(与此处相关 Facebook Open Graph Error - Inferred Property)
我必须将它与空格一起使用 - 但 CakePhp 以这种方式生成它。有什么想法吗?
【问题讨论】:
标签: php header cakephp-3.x