私はドキュメントを読みましたが、かなり断片的で友好的ではありません。
私のページにFbのコメントボックスを含める適切な方法について、誰かが私に対処できますか? 動作をカスタマイズするために使用できるすべての重要なオプションを理解する必要がありますか?
いくつかの正確な質問:
<fb:comment>
非推奨ですか?(- 外観を変更する方法 (
colorscheme=""
が唯一の可能性です) ? - 他のサービス (AOL、Yahoo ...) でのログインを無効にする方法は?
完全で更新されたドキュメント(開発ユーザーフレンドリー)を指す回答も受け入れます
ここに私の現在の実装:
<head>
<meta property="og:locale" content="<?php echo $locale ?>" />
<meta property="og:title" content="<?php echo $title ?>"/>
<!--<meta property="og:description" content="<?php // echo $description ?>"-->
<meta property="og:type" content="product"/>
<meta property="og:url" content="<?php echo $url ?>"/>
<meta property="og:image" content="<?php echo $imageUrl ?>"/>
<meta property="og:site_name" content="<?php echo $siteName ?>"/>
<meta property="fb:app_id" content="<?php echo $appId ?>"/>
<!--<meta property="fb:admins" content="???????????????"/>-->
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : '<?php echo $appId ?>', // App ID from the App Dashboard
channelUrl : '//<?php echo $url ?>/channel.html', // Channel File for x-domain communication
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
// Additional initialization code such as adding Event Listeners goes here
};
// Load the SDK's source Asynchronously
(function(d){
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/<?php echo $locale ?>/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
<div class="fb-comments fb_iframe_widget" data-href="<?php echo $url ?>" data-num-posts="<?php echo $comment_limit ?>" data-width="<?php echo $width ?>" colorscheme="<?php echo $colorScheme ?>" reverse="<?php echo $reverse ?>"></div>
</body>