Javascript 如何正确使用评论框小部件

Javascript 如何正确使用评论框小部件,javascript,facebook,facebook-graph-api,facebook-comments,Javascript,Facebook,Facebook Graph Api,Facebook Comments,我读过,但它很零碎,不友好 任何人都可以通过正确的方式在我的页面上添加Fb评论框来称呼我吗?我需要了解可用于自定义行为的所有重要选项? 一些精确的问题: 是否已弃用?( 如何更改外观(colorscheme=“是唯一的可能性) 如何禁用使用其他服务(AOL、Yahoo…)登录的可能性 我也将接受指向完整和更新文档的答案(开发人员用户友好) 以下是我当前的实施: <head> <meta property="og:locale" content="<?php e

我读过,但它很零碎,不友好

任何人都可以通过正确的方式在我的页面上添加Fb评论框来称呼我吗?我需要了解可用于自定义行为的所有重要选项?

一些精确的问题:

  • 是否已弃用?(
  • 如何更改外观(
    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>
    
    
    
    未被弃用

    只有“浅色”和“深色”配色方案

    要禁用Yahoo和AOL等第三方登录,请确保在中未选中“其他登录提供商”

    以下是如何查找注释设置:

    在加载js sdk(all.js)时,请确保您的app_id包含为参数:

    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=444088878971084";