Facebook喜欢按钮并没有显示时间线上的帖子,而是在网页上更新计数。下面是我正在做的事情,点击链接按钮,它显示了一个有效内容的facebook对话框,并且点击发送没有被发布到时间线上
代码:
<div id="facebook-like">
<fb:like show_faces="false" href="${fbPageUrl}/product/index.jsp?productId=${product.productId}" width="200"></fb:like>
</div>JS代码:
<c:set var="fblaunch" value="${fb_launch}" scope="page"/>
<c:set var="fbAppId" value="${fb_appId}" scope="page"/>
<c:if test = "${fblaunch == 1}">
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: "${fbAppId}", 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);
}());
</script>
</c:if>不明白什么是阻止发表评论的
发布于 2015-06-08 17:27:57
Facebook就像评论一样不会出现在一个人的时间表上,如果页面失败了,打开的图表就会被刮掉。您可以转到https://developers.facebook.com/tools/debug/更正错误。一旦更正,就像“注释”应该开始显示。
https://stackoverflow.com/questions/18323983
复制相似问题