Facebook Comment Box For Blogger
In 2009 Facebook developers introduced their best social plugin called "Facebook Comments Box". This plugin can be embedded in any website or blog and visitors can use their IDs of Facebook, Yahoo, AOL or Hotmail to leave a comment at your site.
Facebook comment box is one of the useful tool for bloggers to increase conversations. Now to add Facebook Comment Box to your Blogger blog follow these steps.
Step 1: Disable Default Comments
Let's start with disabling blogger default comments because you might not want to have 2 comments forms. Now to do this log into Blogger account and go to settings >> posts and comments
Next to "Show Comments" field choose Hide and hit Save Settings.
Step 2. Generate your Facebook App ID
Now to get a facebook comments box in your blogger blog you should generate your own Facebook APP ID/API KEY, it’s really easy and one step process.
Log into your Facebook and go to https://developers.facebook.com/apps/
Then click + Create New App at the top right corner of the page. A new pop-up window will show up.
Enter an application name, check "I agree to the Facebook Terms" and click "Continue".
After passing a capcha you will get a new form
Fill the following info:
App Namespace: Enter anything but if you use more than one word use "-" as a seperator not space.
App Domain: You must type blogspot.com but if your using blogger custom domain you should enter your domain name.
In the end select "Website" to integrate with facebook. and enter your Blog URL and hitSave Changes.
On the next page Facebook will give you the App ID
Just copy it and paste it in a text editor like notepad, we’ll need use in the next steps.
Step 3. Codes To Add To Your Template:
You must add the following codes to your blogger template to ensure that the comments box will work for your blog in the right way.
Now go to your Blogger account once again and navigate to, Template >> Edit HTML,hit Proceed and check Expand Widget Templates
Now find (CTRL+F) this in the code:
and at the following code at the end (before closing the > ). Put a space before it.
Adding the Javascript SDK Code:
Now find (CTRL+F) this in the code:
Add the following code just below/after it.
Note: don’t forget to change YOUR APP ID to your app id ( You got in Step 2).
Adding the Open Graph protocol tags:
Copy the following code
and change the colored text to the following,
Change
Change
Change
Change
After making these changes paste the above code just before/above
Step 4. Adding the Comments Box to your Blogger template:
Now find (CTRL+F) this in the code:
and paste the following code just below/after it.
Step 5.
Save the template.
Note:
For comment moderation just go to http://developers.facebook.com/tools/commentsand click the settings at the rignt.
Facebook comment box is one of the useful tool for bloggers to increase conversations. Now to add Facebook Comment Box to your Blogger blog follow these steps.
Step 1: Disable Default Comments
Let's start with disabling blogger default comments because you might not want to have 2 comments forms. Now to do this log into Blogger account and go to settings >> posts and comments
Next to "Show Comments" field choose Hide and hit Save Settings.
Step 2. Generate your Facebook App ID
Now to get a facebook comments box in your blogger blog you should generate your own Facebook APP ID/API KEY, it’s really easy and one step process.
Log into your Facebook and go to https://developers.facebook.com/apps/
Then click + Create New App at the top right corner of the page. A new pop-up window will show up.
Enter an application name, check "I agree to the Facebook Terms" and click "Continue".
After passing a capcha you will get a new form
Fill the following info:
App Namespace: Enter anything but if you use more than one word use "-" as a seperator not space.
App Domain: You must type blogspot.com but if your using blogger custom domain you should enter your domain name.
In the end select "Website" to integrate with facebook. and enter your Blog URL and hitSave Changes.
On the next page Facebook will give you the App ID
Just copy it and paste it in a text editor like notepad, we’ll need use in the next steps.
Step 3. Codes To Add To Your Template:
You must add the following codes to your blogger template to ensure that the comments box will work for your blog in the right way.
- xmlns attribute
- Javascript SDK
- Open Graph Protocol tags
Now go to your Blogger account once again and navigate to, Template >> Edit HTML,hit Proceed and check Expand Widget Templates
Now find (CTRL+F) this in the code:
<html |
and at the following code at the end (before closing the > ). Put a space before it.
xmlns:fb='http://www.facebook.com/2008/fbml' |
Adding the Javascript SDK Code:
Now find (CTRL+F) this in the code:
<body> |
Add the following code just below/after it.
<div id="fb-root"></div> |
Note: don’t forget to change YOUR APP ID to your app id ( You got in Step 2).
Adding the Open Graph protocol tags:
Copy the following code
<b:if cond='data:blog.pageType == "item"'> |
and change the colored text to the following,
Change
YOUR-BLOG-NAME
with your Blog name.Change
LOGO-URL
with your blog logo, or remove the all tag if you don’t want it.Change
YOUR-APP-ID
with your application ID number ( You got in Step 2).Change
FACEBOOK-PROFILE-ID
with your own Facebook user Profile ID.After making these changes paste the above code just before/above
</head> |
Step 4. Adding the Comments Box to your Blogger template:
Now find (CTRL+F) this in the code:
<data:post.body/> |
and paste the following code just below/after it.
<br/><br/><b:if cond='data:blog.pageType == "item"'> |
Step 5.
Save the template.
Note:
For comment moderation just go to http://developers.facebook.com/tools/commentsand click the settings at the rignt.
No comments:
Post a Comment