Adding a Facebook share button


Many of you have may seen a facebook share button in almost every website or blog, mainly this is because facebook is the best way to expand your number of viewers and you can have a wide access to a larger audience than any other social media network.

let's get to it without further talk shall we?





2. Now find out


<data:post.body/>


( press 'Ctrl' + F to open your browser's search box)

Now paste these code just below it
by pasting these codes below, the share button will appear at the end of your post, if you want it to appear on the top of your post, just paste them above the 'post.body' code.




<div class="facebook-share">
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow'
type='BUTTON-TYPE'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share'
type='text/javascript'/>
</div>



there are 6 layouts for facebook share button.





box_count

button_count

button

icon_link

icon

link


now replace 'BUTTON-TYPE' with your choice from these 6 and you are done.

Posting Komentar

0 Komentar