共享按钮已停止工作

时间:2013-12-13 10:57:00

标签: html facebook api

分享按钮有stoppd工作(昨天效果很好)。当我推送共享时弹出窗口正确打开,但是当按下共享时(弹出窗口内部)没有任何反应。这是网站http://lavozdelmuro.com/10-cosas-de-las-que-un-condon-no-te-podra-proteger-por-ejemplo-de-un-velocirraptor/

<!-- share meta -->
<meta property="og:title" content="<?php the_title(); ?>" />
<meta property="og:description" content="El mejor contenido directo a tu muro" />
<meta property="og:image" content="<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );?><?php echo $url; ?>" />
<meta property="og:url" content="<?php the_permalink() ?>" />
<meta property="og:site_name" content="Lavozdelmuro" />
<meta property="fb:app_id" content="623175637741842" />
<meta property="fb:admins" content="100000269362837" />
<meta property="og:type" content="article" />
<meta content="https://www.facebook.com/Lavozdelmuro" property="article:publisher">

和要分享的HTML:

<a target="_blank"  href="http://www.facebook.com/sharer.php?u=<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?> ">
    <div class="buttonFb"><span class="facebook"></span>Share Facebook</div>
</a>

调试器信息https://developers.facebook.com/tools/debug/og/object?q=lavozdelmuro.com

1 个答案:

答案 0 :(得分:0)

我发现了错误,错过了http:// here

<a target="_blank"  href="http://www.facebook.com/sharer.php?u=**http://**<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?> ">
    <div class="buttonFb"><span class="facebook"></span>Share Facebook</div>
</a>