Error parsing XML, line 658, column 62: The reference to entity "appId" must end with the ';' delimiter.
A error which occurs while adding facebook like to a blog states
Error parsing XML, line 658, column 62: The reference to entity "appId" must end with the ';' delimiter.
It can be solved by clicking on JavaScript SDK. and copying the javascript to code of your webpage
that is
<div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : 'YOUR_APP_ID', // App ID channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); // Additional initialization code here }; // Load the 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>
Change your ID, your website name.
- Now login to http://developers.facebook.com/docs/reference/plugins/like/
- Now copy the second code and paste it on your site, where you want the link box to appear.
example: <div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>'This is an example it will not work properly in your site as there is no URL address. Copy code form the link.
- same goes for the comment button.
If you want any help, just ask in comment.
Regards
Sj
i have the same problem here when i try to all ((Log In)) button to my blog
ReplyDeleteThis method will work with all buttons by facebook. The main reason javascript by fb don't work is that the above mentioned code is not added in the Template. Add it after <body............ tag in template.
ReplyDeleteHope that solves the problem.
Regards
Sj