Tutorial: facebook like button with facebook share button


                               Cara-cara nak buat facebook like button + facebook share button


                                            Contoh:




1.mula2 korang pergi dashboard -> template -> edit html, tick expand widgets  template

2.tekan CTRL+F cari kod bawah

data:post.body

3.ok, kalau da jumpa copy kod bawah ni, paste kan dekat bawah kod yang korang cari tadi ni.

<iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=standard&amp;show-faces=true&amp;width=530&amp;height=60&amp;action=like&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px'/>

<div style='float:left;padding:2px;'>
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='button_count'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>



4.Contoh dia akan jadi macam dalam gambar bawah ni:



5.Preview dulu baru save.




No comments:

Related Posts Plugin for WordPress, Blogger...