Facebook og:标题错误
这是我的页面: http:// www.tutoriallapp.com/viewtutorial?title=How+to+Make+Pizza&tut_id=934&cat_id=1
我正在设置 facebook 打开图使用这个标题:
$tut_title = $_GET['title'];
<meta name="og:title" content="<? echo $tut_title; ?>" />
但是,facebook 调试工具不断告诉我:
推断属性:即使可以从其他标记推断出值,也应显式提供
og:title
属性。
当我对标题进行硬编码时,它可以工作......但是当我使用 $_GET
时,它不起作用。只是不明白。任何帮助,请,谢谢。
This is my page: http://www.tutoriallapp.com/viewtutorial?title=How+to+Make+Pizza&tut_id=934&cat_id=1
I am setting the facebook open graph title using this:
$tut_title = $_GET['title'];
<meta name="og:title" content="<? echo $tut_title; ?>" />
However, facebook debug tool keeps telling me:
Inferred Property: The
og:title
property should be explicitly provided, even if a value can be inferred from other tags.
When I hard code the title, it works ... but when I use $_GET
, it does not work. Just do not get it. Any help, please and thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到这个。
我想知道在字符串值中不使用 + 字符是否会更好。
I see this.
I wonder if it would be better to try without the + characters in the string value.