获取共享按钮和FB评论同时工作 [英] Get Share Button and FB Comments to work at the same time

查看:101
本文介绍了获取共享按钮和FB评论同时工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能同时使用共享按钮和FB评论。

I can't make both the share button and FB comments work at the same time.

如果我把两个脚本都没有得到评论。如果我删除第一个,我没有得到共享按钮,如果我删除FB连接脚本,我没有得到评论。我可以做什么?

If I put both scripts I don't get the comments. If I erase the first one I don't get the share button and if I erase the FB connect script I don't get the comments. What can I do?

这是我的代码:

<a expr:share_url='data:post.url' name='fb_share' style='position:absolute;'/> 

<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'>
</script>


<script src='http://connect.facebook.net/es_ES/all.js#appId=183087358391609&amp;amp;xfbml=1'/>

<fb:comments numposts='5' publish_feed='true' width='624' xid='183087358391609'/>

感谢

推荐答案

尝试更改脚本的顺序。之前已经面对并已知道 - 使用多个.js api时出现的Facebook错误a>

Try changing the order of your scripts. This has been faced and known before - Facebook errors when using multiple .js api

这篇关于获取共享按钮和FB评论同时工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆