How to Add a Facebook Comments Plugin to Blogger

How to Add a Facebook Comments Plugin to Blogger
facebook comments


Facebook comment




In this tutorial we will see together how to add a Facebook comment plugin on Blogger.

1-Create an ID application for your Blogger

It is a necessary step for the creation of "facebook comments". For that you must go to the link https://developers.facebook.com/apps/



Créer une application ID pour son site
Créer une application ID pour son site
Créer une application ID pour son site

Choose Website


Type the url of your WesSite




génerateur de code du plugin comments
Now go to the comments module page while staying connected with your Facebook Developer account.



code html

2-Edit The HTML Code 

Go to Blogger's HTML page and paste the primary code right after the end of the <body> tag. Click on "Save model". 

Now you should get an XML parsing error that says: 

XML error analysis, line 663, column 31: the reference to the entity "version" must end with ';' Delimiter.
Change the code by changing & highlighted in red below by & amp;


Before Editions:

<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/fr_FR/sdk.js#xfbml=1&version=v2.9&appId=Your App ID5";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Step 1: Include the JavaScript SDK on your HTML page

Go to Blogger> Template> EDIT HTML page

Click anywhere on the code page and press "CTRL + F" to display the search bar.

Type <body>, paste the code right after the <body> tag
Modifier le code HTML

After Editions:

<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/fr_FR/sdk.js#xfbml=1& amp ; version=v2.9& amp ; appId= Your App ID";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


After editing, Save the model and the analysis error should not appear again. Step 2: Place this code where you want the plug-in to appear on your page.

<div class="fb-comments" data-href="https://commentcreeunblog.blogspot.fr/" data-width="720" data-numposts="5"></div>
dans ce tutoriel je place le code au dessus juste avant les boutons des réseaux sociaux




Comments

Post a Comment

Popular posts from this blog

How to create an e-commerce store on Blogger

How to Create and Add a Forum To Blogger