[英]Facebook like button asp.net
I would like to add a Facebook like button to my asp.net page. 我想在asp.net页面上添加一个类似Facebook的按钮。
I am using Facebook Like Button plugin 我正在使用Facebook Like Button插件
But unfortunately its not appearing on my page when i run it locally 但是不幸的是,当我在本地运行它时它没有出现在我的页面上
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="false" width="150"></fb:like>
or 要么
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&layout=standard&show_faces=true&width=150&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:80px;" allowTransparency="true"></iframe>
Does anyone have an idea what I might be doign wrong please? 请问有人知道我可能会犯错吗?
Did I need to set an application first to do this? 我是否需要先设置一个应用程序才能执行此操作?
Thanks 谢谢
C C
Did I need to set an application first to do this?
YES 是
you are using XFBML , so you need Facebook javascript SDK and that requires app ID. 您正在使用XFBML,因此您需要Facebook javascript SDK,并且需要应用程序ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.