资讯王 发表于 2013-1-17 22:10:06

Facebook的like赞button出问题The href URL must be absolute-教学

Facebook的link赞button出问题The href URL must be absolute-教学
以下的代码会出问题会有错误
https://www.facebook.com/plugins/error/api?code=100&message=The+href+URL+must+be+absolute&hash=AQDbO7C8s6S5G1Mi<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="www.freeinfo.com.my/viewthread.php?tid=$tid" send="true" width="450" show_faces="true" font=""></fb:like>
之后,换成如下,换了新的script,同时在域名加上http,之后刷新 The href URL must be absolute 就消失了。
appId=138726916195540"是我的,请使用您的<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s);
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=138726916195540";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like href="http://freeinfo.com.my/viewthread.php?tid=$tid" send="true" width="450" show_faces="true"></fb:like>
页: [1]
查看完整版本: Facebook的like赞button出问题The href URL must be absolute-教学