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 ලෝක කුසලානයේ තරගයෙන් පසුව, ඉන්දීය ජාතික කොඩියේ වර්ණයන් ගෙන් යුතුවූ සමරු ලෙහෙන්සුවක් මා දෝනී වෙත ලබාදී ඔහුගෙන් සමරු සටහනක් ඉල්ලූ අවස්තාවේ ඔහු ඔහුගේ කැප් එක මට ලබාදී පැවසුවේ. කෙදිනකවත් ඉන්දියානුවෙකු තම ජාතික කොඩියට හෝ තම රටට අගෞරව නොකරන බවයි.  (මට දෝනී පේන්න බැරි චරිතයකි)  ඔවුන් තුළ ඇති දේශාභිමානය‍‍‍..... ඔවුන්ගේ ජාතික අනන්‍යතාවය මතු පරපුර වෙනුවෙන් ඉතිරිකොට ඇත.

Blogged: බයියන් - ටොයියන් - කබ්බන් හා රූකඩ අතර සිරවුන තරුණ චන්ද

එවකට නිදහස් පක්ෂය ලෙස පිරිසක් හිටපු ජනපති දිනවීමට දිවිහිමියෙන් කටයුතු කලේය. නමුත් අවසානයේ ඔහුට පරාජය වීමට සිදුවිය. නිදහස් පක්ෂයේම වුවත් එහි විරුද්ධ පක්ෂ හා කඳුවුරු බැඳි එවකට සෞඛ්‍ය ඇමතිවරයා ජනපති විය. පරාජිත පාක්ෂිකයන් හා ජයග්‍රාහී පාක්ෂිකයන් කාකොටා ගැනීම ආරම්භ කලේය. පරාජිත පාක්ෂිකයන් තම පරාජිත හැඟීම පිට කලේ, ‍ජාතිවාදය, යුද මානසිකත්වය, හා පුද්ගල චරිත පදනම් කරගනිමිනි. ඒ ඔවුන් එම තත්වයට පත්කල ජනතාවගේ නි‍යෝජිතයන් කියාගන්නා පිරිසක් හේතුවෙනි. ජයග්‍රාහී පාක්ෂිකයන්, සතුට භුක්තිවිඳීම ආරම්භ කලේ ජයග්‍රහණය සැමරීම පසෙකලා පරාජිතයන්ගේ හැඟීම් වලට පහර දෙමිනි. එයද මහජන නියෝජිතයන් යැයි කියාගන්නා පිරිසකගේ අවශ්‍යතා පිරිමැසීමක් විනා අන් කිසිවක් නොවේ. පරාජිතයන්, නැවත නැගී සිටීමට සියලු උත්සාහයන් දැරීම ‍ස්වාභාවිකය. ඒ අනුව නිදහස් පක්ෂය කටයුතු කරනවාද යන්න සැක උපදවයි. ඔවුන් එය පසෙකලා ජයග්‍රාහී පක්ෂයේ ඕනෑ එපාකම් ඉටුකිරීමට සෘජුව හා වක්‍රව වපසරිය සකසමින් සිටී. නැවත බලය තහවුරු කරගැනීමට ඇතැම් බලවේග පෙළගැසෙද්දී හිටපු ජනපතිවරයා තම ලේ දහඩිය වැයකල ප්‍රධාන පක්ෂය ඊට සහභාගීවීම ප්‍රසිද්ධියේ ප්‍රතික්ෂේප කලේය. එසේ...

Blast Cast for RSS Widgest to web sites

News widget or news ticker to add the content to your website or blog. The widgets are highly customizable and can fit seamlessly into your website. Widget Maker for Websites If you have one or more RSS or Atom feeds, you can create a custom widget designer for your website and allow your visitors to create widgets for their websites using your feeds. Because the feed links in the created widgets point to your website, this can help your website or blog gain more traffic and generate more reader interest. RSS Widgets and more... • Create a News Widget • Create a News Ticker • Create a Feed-Landing Page • Create a Feed Widget • Combine, Filter, Sort Feeds • Convert Feed Format • Get Feed in JSON Form • Tap into the Feed API