为什么嵌入iframe的Facebook应用程序中的XFBML标记不显示任何内容? [英] Why does this XFBML markup embedded within an iframe'd facebook application not display anything?

查看:124
本文介绍了为什么嵌入iframe的Facebook应用程序中的XFBML标记不显示任何内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图让这个应用程序在Facebook上工作,但
似乎没有在应用程序内呈现,除了

 你好这是一些示例文本。 
一个以红色抚摸的盒子。 我是我的照片,Facebook用户的默认silhoutte
作为照片。

以下是画布框的源代码:

 <!DOCTYPE html PUBLIC -  // W3C // DTD XHTML 1.0严格// EN
http://www.w3.org/ TR / XHTML1 / DTD / XHTML1-strict.dtd>
< html xmlns = http://www.w3.org/1999/xhtmlxmlns:fb =http://www.facebook.com/2008/fbml>
<头>

< title>切割Masala Chai邀请< / title>
< / head>
< body>

< script type =text / javascript
src =http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php>< / script>

嗨这是一些示例文本

< fb:serverfbml style =border:1px solid red; min-width:700px; min-height:400px>
< script type =text / fbml>
< fb:fbml>
< fb:request-
action =http://www.cuttingmasalachai.com/facebook
method =POST
invite =true
type =切割Masala Chai
content =& lt; lt; fb:name uid =& quot; 605869619& quot; firstnameonly =安培; QUOT;真&安培; QUOT; shownetwork =安培; QUOT假安培; QUOT; /& gt;想邀请你分享故事,并为名人切割Masala Chai,& lt; fb:req-choice url =& quot; http://apps.facebook.com/cuttingmasalachai& ; label =&Add Cutting Masala Chai& /& gt;>
< fb:multi-friend-selector
max =20
actiontext =邀请你的朋友切割Masala Chai
showborder =false
rows =5>
< / fb:multi-friend-selector>
< / fb:request-form>
< / fb:fbml>
< / script>

< / fb:serverfbml>

我是< fb:name uid =605869619firstnameonly =trueshownetwork =false>< / fb:name>
我的照片< fb:profile-pic uid =605869619>< / fb:profile-pic>



< script type =text / javascript>
FB_RequireFeatures([XFBML],function(){

控制台.log('fb_requirefeatures函数调用');
FB.Facebook.init(0acf016613ca171e9665f128d318fd75,/facebook/xd_receiver.html);
});
< / script> ;
< / body>
< / html>



应用程序设置:




  • 画布模式:IFRAME

  • 画布回调网址: http://www.cuttingmasalachai.com/facebook

  • 画布网址: http://apps.facebook.com/cuttingmasalachai

  • URL到 xd_receiver.html http://www.cuttingmasalachai.com/facebook/xd_receiver.html

  • 连接网址: http://www.cuttingmasalachai.com/facebook

  • 基本域名: www.cuttingmasalachai .com



感谢任何帮助。谢谢。

解决方案

其他几个人面临同样的问题:



Facebook论坛讨论此问题。



问题出在连接网址和我正在使用的基本网域以及一个LITTLE
位的PATIENCE。



在Facebook上传播设置到服务器需要几分钟。将连接网址和基本域设置为以下设置后,我只需要等待
a以上:

 连接网址:http ://www.cuttingmasalachai.com/ 
基本域名:cuttingmasalachai.com

希望帮助任何人遇到这个问题。干杯。
另外,5个啤酒的adougherty和krisoye从论坛发布问题
并提供解决方案。


I've been trying to get this application working on Facebook, but nothing seems to render within the application except

"Hi this is some sample text."
A box stroked in red.  "I am My photo " and a default silhoutte of a Facebook user
as the photo.

The following is the source code of the canvas frame:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>

    <title>Cutting Masala Chai Invitation</title>
</head>
<body>

<script type="text/javascript"
    src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>

Hi this is some sample text.

<fb:serverfbml style="border: 1px solid red; min-width: 700px;min-height: 400px">
    <script type="text/fbml">
        <fb:fbml>
            <fb:request-form 
                action="http://www.cuttingmasalachai.com/facebook" 
                method="POST" 
                invite="true" 
                type="Cutting Masala Chai" 
                content="&lt;fb:name uid=&quot;605869619&quot; firstnameonly=&quot;true&quot; shownetwork=&quot;false&quot; /&gt;wants to invite you share stories and vote for celebrities for the book Cutting Masala Chai,&lt;fb:req-choice url=&quot;http://apps.facebook.com/cuttingmasalachai&quot; label=&quot;Add Cutting Masala Chai&quot; /&gt;"> 
                <fb:multi-friend-selector 
                    max="20" 
                    actiontext="Invite your friends to Cutting Masala Chai." 
                    showborder="false" 
                    rows="5">
                </fb:multi-friend-selector>
            </fb:request-form>
        </fb:fbml>
    </script>

</fb:serverfbml>

I am <fb:name uid="605869619" firstnameonly="true" shownetwork="false"></fb:name>
My photo <fb:profile-pic uid="605869619"></fb:profile-pic>



<script type="text/javascript"> 
    FB_RequireFeatures(["XFBML"], function(){

        console.log('fb_requirefeatures function got called');
        FB.Facebook.init("0acf016613ca171e9665f128d318fd75", "/facebook/xd_receiver.html"); 
    });
</script>
</body>
</html>

Application settings:

  • Canvas Mode: IFRAME
  • Canvas Callback URL: http://www.cuttingmasalachai.com/facebook
  • Canvas URL: http://apps.facebook.com/cuttingmasalachai
  • URL to xd_receiver.html: http://www.cuttingmasalachai.com/facebook/xd_receiver.html
  • Connect URL: http://www.cuttingmasalachai.com/facebook
  • Base Domain: www.cuttingmasalachai.com

I'd be grateful for any help. Thank you.

解决方案

A couple other people were facing the same problem:

Facebook Forum Discussion about this problem.

The problem was with the Connect URL and the base domain I was using and a LITTLE bit of PATIENCE.

Propagating settings to servers takes a few minutes on Facebook. I just needed to wait a bit more after setting the connect url and base domain to these:

Connect URL: http://www.cuttingmasalachai.com/
Base Domain: cuttingmasalachai.com

Hope that helps anybody that comes across this problem. Cheers. Also, 5 beers for adougherty and krisoye from the forums for posting the problem and providing solutions.

这篇关于为什么嵌入iframe的Facebook应用程序中的XFBML标记不显示任何内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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