简体   繁体   中英

Suddenly Comments Plugin code is not showing commenting box

I am using bellow code for comments:

<div class="fb-comments" data-numposts="3"
     data-href="HERE_UNIQUE_URL" data-width="100%"
     data-order-by='reverse_time'>
</div>

<script type="text/javascript">
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.8&appId=APPID";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

</script>

Suddenly, It is not showing comments box on new url(data-href). while it is showing with some old URL with comments message. Code are same. There have no error in console.

Use "https://developers.facebook.com/tools/debug/" and debug your new URL. Maybe this is an issue from Facebook comment plugin for the new URL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM