Skip to main content

How to add Facebook Send button to every post Multiple pages

Facebook has introduced a new sharing tool – the Send button. The Send button allows your readers to privately share things with groups and individuals. It enables them to:

Facebook Send button 1
  1. Share your post with selected friends through Facebook Messages.
  2. Post it to Facebook Groups.
  3. Email it (without snippet) to individuals.

Facebook send dialog

The are two notable characteristics of the Send button:

  • Auto suggestion -it auto-suggests friends and groups, so you don’t have to memorize friends’ and groups’ names.
  • Privacy -what you send to a friend or email will not appear on your friend’s newsfeed or your wall. (What you post to a group on the other hand will appear).

This tutorial will show you how to add a Facebook Send button to each blog post in Blogger.

I. Installing a standalone Send button

facebook send button

  1. Go to Dashboard > Design > Edit HTML.
  2. Back up your template.
  3. Tick the Expand Widget Templates check box on top right of the HTML window.
  4. Find the following code in your HTML (this is the code for your post content):
    1<data:post.body/>
  5. Paste the following XFBML code right below that line:
    1
    2<b:if cond='data:blog.pageType != "static_page"'>
    3<div style='float:left;padding:5px 5px 5px 0;'>
    4<script src='http://connect.facebook.net/en_US/all.js#xfbml=1' type='text/javascript'>script><fb:send expr:href='data:post.url' font='' colorscheme='light'>fb:send>
    5div>
    6b:if>
    7
  6. Preview, you should see the button appear in each post.
  7. Click Save if you like what you see.

II. Installing a Like + Send button

facebook like plus send button

Go through similar steps as in section I but replace the code in step 5 with the following code:

1
2<b:if cond='data:blog.pageType != "static_page"'>
3<div style='float:left;padding:5px 5px 5px 0;'>
4<script src='http://connect.facebook.net/en_US/all.js#xfbml=1' type='text/javascript'>script><fb:like expr:href='data:post.url' font='' layout='standard' send='true' show_faces='false' width='450' colorscheme='light'>fb:like>
5div>
6b:if>
7

III. Adding Send button to existing Like button

If you already have a Like button installed, just replace the existing code (it doesn’t matter if it is an iframe or a XFBML) with the following XFBML code.

<script src='http://connect.facebook.net/en_US/all.js#xfbml=1' type='text/javascript'>script><fb:like expr:href='data:post.url' font='' layout='standard' send='true' show_faces='false' width='450' colorscheme='light'>fb:like>

IV. Configuring the buttons

Choose the type of button and set the appropriate width and height by changing the attribute values in line 4.

Like button type Attribute Value Width
standard like button layout standard

450px

facebook like button count button_count

150px

facebook like box count[5][1] box_count

110px

standard like button recommend action recommend

n.a.

standard like button dark colorscheme dark

n.a.

n.a.

font font name

n.a.

Only two attributes are applicable to Send button –colorscheme and font.

V. Repositioning the buttons

The steps above positioned the button on bottom left of each post. You can change the position if you wish:

  • Position it on top of post
    Place the button code before , instead of after.
  • Position it on the right
    Change the float in line 3 from left to right.
  • To display the button on static pages, remove the conditional tag -code line 2 and 6.

Enjoy!

Comments

Popular posts from this blog

Blogged: චන්නට මොකද උනේ ? චන්න ඇයි මෙහෙම කරගත්තෙ ?

ඊ.බී. චන්නව මා හඳනාගන්නේ 1994 වසරේදීයි එවකට මම පාසල් ශිෂ්‍යයෙක්, සෑම පාසල් ක්‍රීඩකයෙකුම සිහින මැව්වෙ, චන්න වගේ පාපන්දු ක්‍රීඩකයෙකු වෙන්න.  ඔහු මුලින්ම ජාතික තලයට පිවිසෙන්නේ, වයස 18 න් පහළ ශ්‍රී ලංකා කණ්ඩායම නියෝජනය කරමින් ඉන්දියාවේ පැවැති තරගාවලියකට සහභාගීවෙමින්, ඔහු ගාල්ල යූත් ගාල්ල යුනයිටඩ් ක්‍රීඩා සමාජ දෙකම විටින් විට නියෝජනය කල අතරම, ඔල්ඩ් ජෝස් ( මරදාන ආදි ශාන්ත ජෝසප් ) කණ්ඩායම නියෝජනය කලා. පාසල් සමයේම දක්ෂතා ගොන්නක් එක්ක පීදුනු මෙම ක්‍රීඩකයා ප්‍රධාන පෙලේ තරග වලට පිවිසුනේ   , පෙටා යුනයිටඩ් හා වික්ටර් ක්‍රීඩා සමාජ වලින්.  ජාතික කණ්ඩායම වසර 15 කට අධික කාලයක් නියෝජනය කරපු චන්න මෙරට ඇති බොහෝ ක්‍රීඩා සමාජ වල ප්‍රධාන සාමාජිකයෙක් වුණා. ඒ වගේම මාලදිවයින, ඉන්දියාව, බංග්ලාදේශය වගේ රටවලත් ක්‍රීඩා සමාජ තරගවලට ක්‍රීඩා කරපු චන්න දැන් ඉන්නේ ගාල්ල නගර සභාවෙ සුලු සේවකයෙකු විදියට ලු..  දැනටත් කලුතර බ්ලූස්ටාර් කණ්ඩායමේ සාමාජිකයෙකු වන චන්නට මෙහෙම වුනේ ඇයි ?  ඔහු  අතීතයෙන්, වර්තමානයට හෝ අනාගතයට අයෝජනයක් කර ගෙන නැත. ඉහළ සාමාජ තත්වයක් සකසා ගැනීමේ හැකියාව මෙන්ම අත්දැකීම්...

Configuring Your MX Records: Other domain hosts Google Apps

These instructions are provided as a general guide for changing MX records. Sign in to your hosting account, and go to the MX record maintenance page.   Who is my domain host? MX records may be located in   DNS Management ,   Mail Server Configuration , or   Name Server Management . You may have to enable advanced settings to edit your MX records. Delete all existing MX entries. By default, MX records may already be present. Enter the following MX records. You may not be able to enter the priority value exactly as it appears in the table below -- if you can, make sure each record follows the indicated order. If you aren't able to assign priorities, you should only enter   aspmx.l.google.com. . Set any TTL values to 1 Hour (value=3600). Priority Mail Server 1 ASPMX.L.GOOGLE.COM. 5 ALT1.ASPMX.L.GOOGLE.COM. 5 ALT2.ASPMX.L.GOOGLE.COM. 10 ASPMX2.GOOGLEMAIL.COM. 10 ASPMX3.GOOGLEMAIL.COM. Note : ASPMX.L.GOOGLE.COM is the top priority mail server. Don't...

Received an amazing birthday gift - It's you & your kind wishes

Another year has passed, another digit added to my age, time sure does fly. I would like to thank each and every one of you for your lovely wishes, and in return would like to wish you all the success and happiness throughout the future. Realized the power and extent of social networking when it came to my birthday. I don’t think I have ever received as many wishes. Hello my friends, just a quick note tonight to say thank you for all your Wishes. It filled my heart with joy to read all of your kind words. I had a wonderful day and I am still enjoying, Thanks a lot, you all are so special to me and your wishes too. I can’t believe I have to wait another year to hear such sweet things again. Once again i thank all of you for this compliment and the wonderful wishes, I will never ever forget this. I tried to attend & reply each and every wish faithfully, and also urge forgiveness if missed by any mistake. Facebook Wishes Twitter Wishes ...............