如果我在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>像这样的东西,但它不会真正起作用,
有什么建议么? 谢谢
<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>this code works fine if i use it inside facebook FBML tab app.
but i have another app that uses iframes and i'm loading a simple page from my website. Im trying to put my html/php code together with the fbml one but with no success:
<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>something like this, but it wont really work,
any suggestions? thanks
最满意答案
这篇文章有你想要的。 使用iframe页面时,您必须使用服务器代码执行此操作,因为Facebook会将发布变量发送到您的页面,其中包含有关用户的匿名信息,包括他们的语言以及他们是否是粉丝。 一旦他们喜欢页面,页面将刷新,您将通过相同的帖子变量信息知道他们是粉丝。
此外,不推荐使用FBML选项卡,如果您有足够的时间在Facebook杀死它们之前,您需要将它们转换为iframe。
This article has what you are looking for. With iframe pages, you have to do this with server code as Facebook will send post variables to your page with anonymous info about the user including their language and whether they are a fan or not. Once they like the page, the page will refresh and you will know that they are a fan via the same post variable information.
Also, the FBML tabs are deprecated and you will want to convert them over to iframes when you have the time before Facebook kills them.
facebook如何如果我在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>像这样的东西,但它不会真正起作用,
有什么建议么? 谢谢
<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>this code works fine if i use it inside facebook FBML tab app.
but i have another app that uses iframes and i'm loading a simple page from my website. Im trying to put my html/php code together with the fbml one but with no success:
<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>something like this, but it wont really work,
any suggestions? thanks
最满意答案
这篇文章有你想要的。 使用iframe页面时,您必须使用服务器代码执行此操作,因为Facebook会将发布变量发送到您的页面,其中包含有关用户的匿名信息,包括他们的语言以及他们是否是粉丝。 一旦他们喜欢页面,页面将刷新,您将通过相同的帖子变量信息知道他们是粉丝。
此外,不推荐使用FBML选项卡,如果您有足够的时间在Facebook杀死它们之前,您需要将它们转换为iframe。
This article has what you are looking for. With iframe pages, you have to do this with server code as Facebook will send post variables to your page with anonymous info about the user including their language and whether they are a fan or not. Once they like the page, the page will refresh and you will know that they are a fan via the same post variable information.
Also, the FBML tabs are deprecated and you will want to convert them over to iframes when you have the time before Facebook kills them.
发布评论