javascript - FB Comments not working -


                <div id="fb-root"></div>             <script>               window.fbasyncinit = function() {                 fb.init({                   appid      : '307264182690190', // app id                   channelurl : '//www.gig-links.com/channel.html', // channel file                   status     : true, // check login status                   cookie     : true, // enable cookies allow server access session                   xfbml      : true  // parse xfbml                 });                  // additional initialization code here               };                // load sdk 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/en_us/all.js";                  ref.parentnode.insertbefore(js, ref);                }(document));             </script>               <div id="bottom" style="float: left; border: 2px solid black; width: 100%;">                 <center>                 <div class="fb-comments" data-href="http://www.gig-links.com" data-num-posts="2" data-width="470"></div>                 </center>             </div> 

fb comments don't appear @ all. channel.html exists , have facebook connect login working via php. need require php function of sort?

you try adding xfbml=1 hash option asynchronous script loading:

js.src = "//connect.facebook.net/en_us/all.js#xfbml=1"; 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -