简体   繁体   中英

Facebook Like Button Added to My Site Not Showing Up in FB when clicked

I added the following to my website:

<div id="fb-root"></div>
<script>(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_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

<div class="fb-like" data-href="${URL}" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>

Every thing seems to be working with one exception. I am allowed to add comments, but when the Post to Facebook button is clicked, nothing is showing up in Recent Activity or Likes on Facebook itself. Is there an issue with FB? Other things I like from other sites are appearing in Recent Activity and Likes.

您的应用ID丢失

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

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