Monday, July 8, 2013

Add Facebook Comments Box To Blogger

Today i will explain how to add facebook comments to blogger, as we 

know that facebook is the most largest social network till now.

Facebook has released many plugins for blogs and websites.In 2009 Facebook 

developers introduced their best social plugin called "Facebook Comments 

Box". This plugin can be embedded in any website or blog. With the 

Comments Box, Facebook users on your site can comment on your content, 

post those comments to their profiles, and share them with their friends on 


So adding facebook comments will be a good addition helping your followers 

to comment your blog posts as they don't need to sign in any other social 

networks. So follow these simple steps and it will ok:-

  1. Go to facebook developer page
  2. Choose create anew apps.

    3. Complete the required information and click create.

    4. It will give you important information like (App ID/API Key)

    5. Go to blogger login in your account choose template>>Edit html then 

    search for this code  <html by Pressing CTRL+F give it a space 

    then add this code blow it:-                


    6-Press CTRL+F on your keyboard to search for   <body>

    Note:- It may look like that in some templates:-

    <body expr:class='&quot;loading&quot; + data:blog.mobileClass'>

    And add the following code just blow any of them

    <div id="fb-root"></div> 
    window.fbAsyncInit = functionundefined) {
    status : true, // check login status
    cookie : true, // enable cookies to allow the server to access the session
    xfbml : true // parse XFBML
    undefinedfunctionundefined) {
    var e = document.createElementundefined'script');
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    e.async = true;

    Replace 'YOUR APPLICATION ID HERE with your AppID

    7-search for </head> by Pressing CTRL+F  and above it add the 

    following code:-

    <meta expr:content='data:blog.pageTitle' property='og:title'/> 
    <meta expr:content='data:blog.url' property='og:url'/> 
    <meta content='webarenaa' property='og:site_name'/> 
    <meta content='BLOG-LINK' property='og:image'/> 
    <meta content='YOUR_APP_ID ' property='fb:app_id'/> 
    <meta content='http://www.facebook.com/webarenaa' property='fb:admins'/>
    <meta content='article' property='og:type'/

    -Replace webarenaa with your blog title name

    -Replace BLOG-LINK with your blog link

    -Replace YOUR_APP_ID with yours

    -Replace http://www.facebook.com/webarenaa with your page link

    8-Search for the following code by Pressing CTRL+F 

    <b:includable id='comment-form' var='post'>

    And add the following code after it

    <b:if cond='data:blog.pageType == &quot;item&quot;'> <div style='padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;'><script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/> <div> <fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' width='520'/></div> <div style='color:#fff; background-color:#3B5998;border: solid 1px #ddd; font-size:10px; padding:3px;width:510px;'>Facebook Blogger Plugin: By <b><a alt='RN Hckr' href='http://www.rnhckr.com/' style='text-decoration:underline; color:#fff;' target='_blank' title='RN Hckr'>RNHckr.com</a></b></div></div> </b:if>

    Now you are done, You can control the style of the box through  light and the size of it 

    through width='520' ,you can change the footer credit size through width:510px

    Now lets move to enabling notifications go to this URL>>


    Replace  YOUR_APP_ID with yours and add your self as an moderator

    Add Facebook Comments To Blogger

    If this works for you, you'll be able to say thanks by sharing 

    on Facebook, striking the Google +1 button or just victimisation the 

    comment box. Also, it might be nice of you to not take away the credit 

    link to permit others notice this handy contraption. If you’re having 

    issues implementing this likewise, don’t hesitate to let me recognize 

    perhaps I will be of facilitate.


Post a Comment

Related Posts Plugin for WordPress, Blogger...> Blogger Widgets