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

ජාතික ගීය හෝ ජාතික ධජය, අන්තවාදය පෙන්වන ආභරණයන් නොවේ..

ජාතික ගීය හෝ ජාතික ධජය, ජාතික ධජයේ වර්ණයන් යනු තොපේ ජාතිය හෝ ධර්මය පෙන්වන ආභරණයන් නොවේ.. එය ජාත්‍යාලය, දේශාභිමානය‍‍‍ හා දේශයේ පෞඪත්වය පෙන්වන ජාතියේ අනන්‍යතාව යයි.  ජාතිය යනු ශ්‍රී ලාංකික ජාතියයි.  ලංකාවේ සම"හරක්" වැනි පටු අරමුණු සහිත වූවන් ඉන්දියාව වැනි රටක රජවී සිටියානම් ඔවුන්ගේ ජාතික ගීය භාශා 1000 කින් පමණ remix වන්නට ඉඩ තිබුණි.  සරල උදාහරණයක් - ඉන්දියාව හා දකුණු අප්‍රිකාව අතර 20-20 ලෝක කුසලානයේ තරගයෙන් පසුව, ඉන්දීය ජාතික කොඩියේ වර්ණයන් ගෙන් යුතුවූ සමරු ලෙහෙන්සුවක් මා දෝනී වෙත ලබාදී ඔහුගෙන් සමරු සටහනක් ඉල්ලූ අවස්තාවේ ඔහු ඔහුගේ කැප් එක මට ලබාදී පැවසුවේ. කෙදිනකවත් ඉන්දියානුවෙකු තම ජාතික කොඩියට හෝ තම රටට අගෞරව නොකරන බවයි.  (මට දෝනී පේන්න බැරි චරිතයකි)  ඔවුන් තුළ ඇති දේශාභිමානය‍‍‍..... ඔවුන්ගේ ජාතික අනන්‍යතාවය මතු පරපුර වෙනුවෙන් ඉතිරිකොට ඇත.

ALS අයිස් බකට් චැලේන්ජ් එක හා ශ්‍රී ලාංකික ජන විඥ්ඥානය

ඉතාදුර්ළභ ඝණයේ ස්නායු දුර්වලතාවකට සමාන රෝගයක් ලෙස සැලකෙන Amyotrophic lateral sclerosis හෙවත් ඒ එල් එස් රෝගය ගැන ලෝකයේ ඇස් ඇරීමට හා එය තුරන් කිරිමට මූල්‍ය අරමුදල් රැස්කිරීමේ අරමුණින් මුලින්ම අයිස් බකට් චැලේන්ජ් ලෙස කවකෙකුට අභියෝග කිරීම ඇමරිකාවේදී ආරම්භ විය. මෙහිදී සිදු කරන්නේ තමන් විසින් තවත් තිදෙනෙකුට අභියෝග කිරීමයි, එහිදී අයිස් පිරි භාජනයක් හිස මතට වත්කරගනිමින් තමන්ව අනුගමනය කරනලෙස අභියෝග කරයි. අභියෝගය භාරගන්නා පිරිස් ඒ.එල්.එස් අරමුදලට දායකවීමට අමතක නොකරන අතරම අයිස් වතුර තම හිසට හලා ගනිමින් අදාළ පුණ්‍ය කාර්‍යයට එක්වූ බව නාමිකව අගවයි. එසේම මෙහි තවත් එක් අවශේෂ කාරණයක් ඇත. එදාළ ස්නායු දුර්වලතාවයෙන් පෙලෙන රෝගීන්‍‍ගෙ සම ප්‍රතික්‍රියා දක්වන ආකාරය ගැන ප්‍රායෝගිකව පෙන්වාදීමද මෙයින් සිදුවන බව පැවසේ. කෙසේ වෙතත් මෙම අයිස් බකට් අභියෝගයෙහි ඇති අර්ථය නොදන්නා පිරිස් විසින් මෙම පුණ්‍ය කාර්‍යය හාස්‍ය දනවන්නක් ලෙස සිදුකිරීමට පෙළඹීම ශෝකවිය යුතු කරුණකි. අයිස් බකට් අභියෝගය මගින්, එය ව්‍යාප්ත කිරීම මගින් අදාළ පුද්ගලයන් සමාජයට පණිඩිඩයක් ‍ලබා දෙනු ලබයි, නමුත් ඇතැම් පුද්ගලයන් හුදෙක් විනෝදය, ප්‍රචා

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 assign the top