Error Parsing XML in Facebook Page Plugin

I got an error message during the  template XML Saving Process. See the Below Error Message.
My Error Was Error Parsing XML !

I tried to add facebook page widget to my blogspot blog. So I had to add following code snippet.

<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";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
I copied the code to blogger template and Saved it. Error Occured.... !

Change the Following Line to avoid the XML Parsing Error.
 js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
Replace the above line with the following Line.
 js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.3";
Now you can Save the template without any error. Save the template and add html/javascript widget.
Copy the following code inside the Widget.

<div class="fb-page" data-href="https://www.facebook.com/etutionlk" data-hide-cover="false" data-show-facepile="true" data-show-posts="false">
<div class="fb-xfbml-parse-ignore">
<blockquote cite="https://www.facebook.com/etutionlk">
<a href="https://www.facebook.com/etutionlk">Etution</a>
</blockquote>
</div>
</div>


Save it. !

0 comments:

Post a Comment

Ask anything about this Tutorial.