简体   繁体   English

如何使用Facebook评论插件进入Facebook页面

[英]how to use facebook comments plugin into facebook page

We have a Face book page.We add a custom FBML tab.Now we want to add Comment Face book plugin.I tried to add an script what i got from Face book Social Plug in .The code is 我们有一个Face book页面。我们添加了一个自定义FBML选项卡。现在我们要添加Comment Face book 插件 。我试图添加一个脚本,我从脸书社交插件中获得 。代码是

<div id="fb-root"></div><script 
<src="http://connect.facebook.net/en_US/all.js#appId=178089302222317&amp;amp;xfbml=1"></script><fb:comments numposts="10" width="425" 
publish_feed="true"></fb:comments>

After that i put this script to custom FBML page but its not reflecting any thing please suggest to solve this issue. 之后,我把这个脚本放到自定义FBML页面,但它没有反映任何东西请建议解决这个问题。

Thanks in advance. 提前致谢。

You should start over and not use FBML but use an iframe instead. 你应该重新开始,不要使用FBML,而是使用iframe。

You are trying to create an app on a page tab. 您正尝试在页面标签上创建应用。 To do this take a look at the FB dev site and it shows you how to get started with an iframe based app and then how to get that to work on a page tab. 要做到这一点,请查看FB开发站点,它将向您展示如何开始使用基于iframe的应用程序,然后介绍如何在页面选项卡上使用它。

https://developers.facebook.com/docs/guides/canvas/#tabs https://developers.facebook.com/docs/guides/canvas/#tabs

Once you move to iframes you can use all of the social plug-ins and other advanced features like the Graph API. 移动到iframe后,您可以使用所有社交插件和Graph API等其他高级功能。

<fb:comments xid="some_unique_id_doesnt_matter_what" canpost="true" candelete="false" publish_feed="true" numposts="10" returnurl="http://facebook.com/YOURPAGE">

<fb:title>Headline</fb:title>
</fb:comments>

this is what you are looking for.. your code doesnt work in FBML, yours is XFBML 这就是你要找的..你的代码在FBML中不起作用,你的代码是XFBML

<fb:title>

is optional 是可选的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM