Exclusive, Integrate Facebook Comments Box For Blogger In Very Easy And Simple Steps – Fixed 2

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.
and in this step we’ll add the following codes,

  • xmlns attribute
  • SDK script
  • Open Graph protocol tags

  • Adding the xmlns attribute :

please go to your blogger account again, and navigate to, layout >> edit html >> and check Expand Widget Templates
then find the following code,

 

you’ll find it on the top of your code. second or third line, and after it add the following code,

xmlns:fb='http://www.facebook.com/2008/fbml'

you must type a space before it and after it,
here is an example.

 xmlns:fb='http://www.facebook.com/2008/fbml'  expr:dir='data:blog..............2005/gml/expr'  >
  • Adding the SDK script Code :

search for

 

and after it add the following code,


but please don’t forget to change YOUR APP ID to your app id ( you got it in the previous step ).

  • Adding the Open Graph protocol tags:

copy the following code.













and change the colored text to the following,
Change MY-SITE-NAME with the one you want to appear when a user likes a page. (Gil likes Helping on Facebook)

Changehttp://google.com/…/blogger_logo.gif with your blog logo, or remove the all tag if you don’t want it.

Change YOUR-APP-ID with your application ID number.

Change YOUR-FACEBOOK-PROFILE-ID with your own facebook user profile ID.

after making this changes add the above code just before

 

now we finished adding the facebook codes to your template, please don’t touch anything and continue to the next step.

See next post..

Readthis



0 comments: