facebook如何解决问题?

|
<fb:visible-to-connection>
<img src=\"http://www.xxx.com/images/welcome1.jpg\" border=\"0\" alt=\"Welcome to \">
<fb:else>
<div style=\"top: 0; position: absolute;\">
<img src=\"http://www.xxx.com/images/like_us1.jpg\" />
</div>
</fb:else>
</fb:visible-to-connection>
如果我在facebook FBML选项卡应用程序中使用它,此代码将正常工作。 但是我还有另一个使用iframe的应用程序,我正在从我的网站加载一个简单的页面。我试图将我的html / php代码与fbml放在一起,但没有成功:
<html>
<dody>
<fb:visible-to-connection>
..........html and php code here........
<fb:else>
<div style=\"top: 0; position: absolute;\">
<img src=\"http://www.xxx.com/images/like_us1.jpg\" />
</div>
</fb:else>
</fb:visible-to-connection>
</body>
</html>
像这样的东西,但它不会真正起作用, 有什么建议么? 谢谢     
已邀请:
本文提供了您想要的内容。对于iframe页面,您必须使用服务器代码来完成此操作,因为Facebook会将带有有关用户的匿名信息(包括其语言以及是否是粉丝)的帖子变量发送到您的页面。他们喜欢该页面后,页面将刷新,并且通过相同的post变量信息,您将知道他们是粉丝。 另外,不建议使用FBML标签,并且您需要在Facebook杀死它们之前有一段时间将其转换为iframe。     

要回复问题请先登录注册