facebook-api:什么是Facebook Connect跨域收件人URL? [英] facebook-api: what's Facebook Connect cross-domain receiver URL?
问题描述
我试图配置我的Facebook应用程序将可调整大小。
I'm trying to configure that my facebook application will be resizeable.
http://wiki.developers.facebook.com/index.php/Resizable_IFrame
谈论facebook连接跨域收件人URL。
talk about facebook connect cross-domain receiver URL.
,在JS代码中,我需要输入'site relative url to xd_receiver.htm'。
and in the JS code i need to enter the 'site relative url to xd_receiver.htm'.
这是什么?
该HTML文件中应该有什么代码?
what code should be in that HTML file ?
感谢
推荐答案
这是一个保存到本地Web服务器的文件。它允许Facebook保存您有权访问的cookie。基本上,它允许Facebook Connect工作。
This is a file saved to your local web server. It allows Facebook to save a cookie that you have access to. Basically, it allows Facebook Connect to work.
最简单的事情就是把它放在你的web根目录下( http://example.com/xd_receiver.htm )
Easiest thing to do is just place it in your web root (http://example.com/xd_receiver.htm)
此文件应包含以下内容: / p>
This file should contain the following:
<!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" >
<head>
<title>Cross-Domain Receiver Page</title>
</head>
<body>
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/XdCommReceiver.js?v2" type="text/javascript"></script>
</body>
</html>
这篇关于facebook-api:什么是Facebook Connect跨域收件人URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!