Php 添加多个类似facebook的按钮

Php 添加多个类似facebook的按钮,php,Php,我想通过ajax花式框打开类似facebook的按钮。当我使用iframe时,所有图像都有类似按钮。当我单击任何一个类似按钮时,所有图像都变成类似。 当我第一次尝试使用类似facebook的按钮时,但之后它就不显示了 我使用iframe的代码 .html&image=&layout=standard&show_faces=true&width=450&action=like&font=arial&colorscheme=light&send=true” scrolling=“no”framebo

我想通过ajax花式框打开类似facebook的按钮。当我使用iframe时,所有图像都有类似按钮。当我单击任何一个类似按钮时,所有图像都变成类似。 当我第一次尝试使用类似facebook的按钮时,但之后它就不显示了

我使用iframe的代码

.html&image=&layout=standard&show_faces=true&width=450&action=like&font=arial&colorscheme=light&send=true” scrolling=“no”frameborder=“0”allowTransparency=“true” style=“border:无;溢出:隐藏;宽度:450px;高度:px“> 和fb一样

window.fbAsyninit=函数(){ init({appId:'your app id',status:true,cookie:true,xfbml:true});};(function(){var e= document.createElement('script');e.async=true;e.src= document.location.protocol+'//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e);}(); (功能(d、s、id){ var js,fjs=d.getElementsByTagName[0]; if(d.getElementById(id))返回; js=d.createElement;js.id=id; js.src=“//connect.facebook.net/en_US/all.js#xfbml=1”; insertBefore(js,fjs);}(文档'script','facebook jssdk'); " layout=“button\u count”show\u faces=“false”>


请帮助我…………

我现在得到了解决方案,它正在工作,但当我喜欢“喜欢”按钮时会显示错误消息iframe代码为

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