【发布时间】:2014-04-01 09:06:43
【问题描述】:
我在 laravel 上有一个应用程序,我正在为我的网站使用 AddThis (https://www.addthis.com/)。
当我尝试分享主页时一切正常,但我不断收到“糟糕!出现错误”。当我尝试共享任何非索引页面时。
我正在为各个页面上的元数据使用模板
在我的 base.blade.php 我有
<meta property="og:site_name" content="ALLMENZ" />
<meta property="og:url" content="mycontent" />
<meta property="fb:app_id" content="" /> <!-- for facebook-insights-->
<meta property="og:title" content="{{{$meta_title}}}" />
<meta property="og:description" content="{{{$meta_description}}}" />
<meta property="og:image" content="{{{$meta_photo}}}" />
在非索引页面中我有
<?php View::share('meta_title', 'user timeline'); ?>
<?php View::share('meta_description', 'this is the user timeline page'); ?>
<?php View::share('meta_photo', ''); ?>
有人知道这里发生了什么吗?提前致谢(=
【问题讨论】:
-
如果您通过 AddThis 共享器以及 og:url 传递任何 queryString 变量或 UTM 代码,您可能必须使用我解释的修复程序 here
标签: php laravel metadata facebook-sharer addthis