Facebook share button now requires appid
-
My facebook share with count button disappeared recently. Upon further investigation, I have found the javascript for the facebook share is lacking the appid. Adding in a valid ID fixes the problem.
In include/services-js-array.php, appID is missing from the js.src line.
<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/sdk.js#xfbml=1&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
Changing the “js.src” line with something like this (replacing ##### with a valid ID) fixes the problem:
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=##########&version=v2.0";
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Facebook share button now requires appid’ is closed to new replies.