Facebook Like按钮XFBML注释不起作用 [英] Facebook Like Button XFBML comment not working

查看:114
本文介绍了Facebook Like按钮XFBML注释不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:阅读完整答案的标题为答案的条目的评论。



我正在执行Like按钮本文档中的Facebook: http://developers.facebook.com/docs/reference/plugins / like



我正在使用XFBML版本,以便用户点击Like按钮时可以添加评论。我已使用有效的应用程序ID导入Facebook JavaScript SDK。该按钮出现,我可以喜欢的页面,但我从来没有提示您的评论。



有没有人遇到这些问题?任何人知道修复?

解决方案

在插入正确的 appId 在 FB.init()调用初始化Facebook的JavaScript SDK,该按钮出现,我能够像像一样的页面,但没有看到任何评论框



当我插入appId,但在本地托管页面时,我收到一条错误消息,指出无法访问该页面(从Facebook的服务器)。 p>

最后,在公共服务器上托管页面使按钮的行为按预期的方式:XFBML版本的注释框,Iframe的没有注释框。



希望有帮助...


Update: Read the comments to the item marked as the answer below for the full answer.

I am implementing a Like button from Facebook per this document: http://developers.facebook.com/docs/reference/plugins/like

I am using the XFBML version so that users can add comments when they click on the Like button. I have imported the Facebook JavaScript SDK an am using a valid App ID. The button appears and I am able to "Like" the page, but I am never prompted for comments.

Is anybody else running into these issues? Anybody know of a fix?

解决方案

Before I had inserted the correct appId in the FB.init() call to initialize the Facebook javascript SDK, the button appeared, I was able to "Like" the page like you, but saw no comment box either.

When I inserted the appId, but hosted the page locally, I got an error message saying that the page could not be reached (from Facebook's servers).

Finally, hosting the page on a public server made the buttons behave as expected: with comment box for the XFBML version, and without comment box for the Iframe.

Hope that helps...

这篇关于Facebook Like按钮XFBML注释不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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