Facebook の「いいね」ボタンの問題を解決できる人はいますか?
このプラグインを自分の Web サイトにインストールしましたが、ボタンをそれぞれのニュース投稿に個別に対応させたいと考えています。現時点では、私のウェブサイトのホームページにのみリンクしています。各投稿の下部に表示されるフッターは、PERMALINK として設定されています。
ウェブサイトのリンク - http://www.estrellarocks.com/news
以下は私が使用しているコードです:
<head>
<title>Estrella</title>
<meta property="fb:admins" content="......"/>
<meta property="fb:app_id" content="......"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://estrellarocks.com"/>
<meta property="og:site_name" content="Estrella Official"/>
<meta property="og:description" content="Official Website for Scottish rock band Estrella!"/>
<meta property="og:image" content="http://estrellarocks.squarespace.com/storage/FB%20Plugin%20image.jpg"/>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '.......',
channelUrl : '//www.estrellarocks.com/channel.html',
status : true,
cookie : true,
xfbml : true
});
};
(function(d, debug){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
ref.parentNode.insertBefore(js, ref);
}(document, /*debug*/ false));
</script>
</body>
</head>
私のパーマリンク:
<div class="fb-like" data-href="%PERMALINK%" data-send="true" data-width="450" data-show-faces="false"></div>