0

私はドキュメントを読みましたが、かなり断片的で友好的ではありません。

私のページにFbのコメントボックスを含める適切な方法について、誰かが私に対処できますか? 動作をカスタマイズするために使用できるすべての重要なオプションを理解する必要がありますか?

いくつかの正確な質問:

  1. <fb:comment>非推奨ですか?(
  2. 外観を変更する方法 (colorscheme=""が唯一の可能性です) ?
  3. 他のサービス (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>
4

1 に答える 1

0

<fb:comment>非推奨ではありません。

ちょうど「明るい」と「暗い」配色。

Yahoo や AOL などのサード パーティのログインを無効にするには、https: //developers.facebook.com/tools/comments で [その他のログイン プロバイダー] がオフになっていることを確認します。

コメント設定を見つける方法は次のとおりです。

https://developers.facebook.com/tools/comments

コメントの管理

コメント設定

js-sdk (all.js) をロードするときに、app_id がパラメーターとして含まれていることを確認してください。

js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=444088878971084";
于 2012-10-19T22:52:29.990 に答える