gpt4 book ai didi

javascript - Facebook Like 按钮不在时间轴上显示帖子

转载 作者:行者123 更新时间:2023-11-29 22:10:29 24 4
gpt4 key购买 nike

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>

不明白是什么阻止发表评论

最佳答案

Facebook Like Comments 将不会显示在个人时间轴上,如果页面未能通过打开的图表抓取。你可以去https://developers.facebook.com/tools/debug/纠正错误。更正后,Like“评论”应该开始显示。

关于javascript - Facebook Like 按钮不在时间轴上显示帖子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18323983/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com