开发者

Getting the "like" button to appear on ALL of my web site's pages

开发者 https://www.devze.com 2023-04-09 10:29 出处:网络
I have been able to ge the \"like\" button to appear on my home page, but cannot get it to show up on ALL my pages on the site. I have tried copying & pasting this code:

I have been able to ge the "like" button to appear on my home page, but cannot get it to show up on ALL my pages on the site. I have tried copying & pasting this code:

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']) ?>&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe>

I found this code here: http://www.greenlabeldesign.com.au/2010/0开发者_如何学运维4/inserting-the-facebook-like-feature-on-your-website/

Any suggestions on how to implement this feature? My web site is www.connieskids.com


You need to include facebooks javascript file on all pages:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号