{"id":8909985,"date":"2017-03-13T23:13:39","date_gmt":"2017-03-13T23:13:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/facebook-count-not-working-2\/"},"modified":"2017-03-13T23:13:39","modified_gmt":"2017-03-13T23:13:39","slug":"facebook-count-not-working-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/facebook-count-not-working-2\/","title":{"rendered":"Facebook count not working"},"content":{"rendered":"<p>I&#8217;ve followed <a href=\"https:\/\/crestaproject.com\/add-facebook-app-id-cresta-social-share-counter-plugin\/\" target=\"_blank\">these instructions<\/a> on setting up a FB id, but still can&#8217;t seem to get the counts to show. I&#8217;m using the FB API v2.8. I&#8217;ve input the FB App ID &amp; secret token. <\/p>\n<p>I&#8217;ve also input the following FB SDK for Javascript code after the opening &lt;body&gt; tag in the header.php of my child theme. <\/p>\n<pre><code>&lt;script&gt;\n  window.fbAsyncInit = function() {\n    FB.init({\n      appId      : &#039;############# (my ID here)&#039;,\n      xfbml      : true,\n      version    : &#039;v2.8&#039;\n    });\n    FB.AppEvents.logPageView();\n  };\n\n  (function(d, s, id){\n     var js, fjs = d.getElementsByTagName(s)[0];\n     if (d.getElementById(id)) {return;}\n     js = d.createElement(s); js.id = id;\n     js.src = &quot;\/\/connect.facebook.net\/en_US\/sdk.js&quot;;\n     fjs.parentNode.insertBefore(js, fjs);\n   }(document, &#039;script&#039;, &#039;facebook-jssdk&#039;));\n&lt;\/script&gt;<\/code><\/pre>\n<p>This is an <a href=\"https:\/\/josephpliu.com\/run-informational-interview\/\" target=\"_blank\">example post<\/a> where you can see the FB count is not working. <\/p>\n<p>Any ideas how I can fix this? Thanks. <\/p>\n","protected":false},"template":"","class_list":["post-8909985","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8909985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8909985\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8909985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}