The new version of Facebook script is on its run. The 2.3 version also deprecated the “Like Box” and created new “Page Plugin”. Lot of users are replacing their like boxes without any particular likeness. All users are facing the issue of parsing XML in the new Facebook script.

One of my post, “(solved) Parsing XML in Face Book Like Box script of “&”, “key” and the ‘;’ delimiter” talked about how one can remove the XML parsing error from the like box of Facebook. However that is not working with the new script. Lot of users went through the suffocating message, “entity “version” must end with the ‘;’ delimiter” in the Blogger template. I found a solution for it. 
The script which you will get from the Facebook Plugin page is as follows,

FB developers Page plugin page Script
FB developers Page plugin page Script

<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.3&appId=630535786999761”;
  fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

While you try to add to the blogger template, you will get the above error. Even though you tried to add the delimiter, it will keep saying that, you have to declare it.

SOLUTION

There is a easy way of doing this and believe me you won’t get such easier way from any places. This code is improvised one, so that CDATA will also be recognized.

Just copy the below script instead of the script given by Facebook Developers.
NB: If you are using an appId only, you use this script. Replace the appId and add yours.

Update on New Facebook Modified Script 2.9 – Have an App ID

<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 = &quot;//connect.facebook.net/en_US/all.js#xfbml=1&amp;appId=630535786999761&quot;; fjs.parentNode.insertBefore(js, fjs); }(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));</script>

If you do not have an app ID, copy the following code.

<div id=’fb-root’/>
<script>
/* <![CDATA[ */
    (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.3”;
        fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));
/* ]]> */
</script>

After copying the code, just paste it wherever you like and reload your website page.

If you want lesson to install page plugin to your site: Read my new post, “” If its working, just subscribe me and share this post to others. I will be really glad.

Check for Other XML Validation Errors

If you want to check for other XML validation errors, go to Online XML Syntax Error Parsing Validator Tool

Also read: Adding Page Plugin gadget of Facebook to Blog Spot Blog/Website Templates

Categories: App Development

Related Posts

App Development

How to Add and Remove App project from Firebase Console

Have you been wondering lately on how to add an Android app project in Firebase and then delete the project securely. Here is a detailed tutorial on how to add an app project in Firebase Read more…

App Development

How To Fix Android Studio Crunching Cruncher Error

Android Studio throws this Crunching cruncher icon.png failed error when user try to compile an apk. These are examples of the same errors such as java.lang.runtimeexception: some file crunching failed, see logs for details, failed Read more…

App Development

Best AppLock Video Photo Vault For Android Mobile

Here is the best Best AppLock Video Photo Vault For Android Mobile. This Best AppLock Video Photo Vault can hide your photos / images, videos, lock your apps, show you your device info including RAM, Read more…