javascript 频道网址 Facebook
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15821196/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Channel URL Facebook
提问by Federico Capello
I'm implementing the facebook login in my website wich is in the form of mysite.anotherdomain.org . I did all explained in the Documentation of the Javascript SDK but, since I have some problems, I'm wondering if the error comes from the channel url.
我正在以 mysite.anotherdomain.org 的形式在我的网站上实现 facebook 登录。我在 Javascript SDK 的文档中做了所有解释,但是,由于我遇到了一些问题,我想知道错误是否来自频道 url。
What should I exactly write for the channel file?
我应该为频道文件写什么?
Thanks in advance!
提前致谢!
回答by asifrc
The channel file basically fixes certain cross-domain issues for certain browsers. The following are the three that Facebook has identified:
频道文件基本上修复了某些浏览器的某些跨域问题。以下是 Facebook 确定的三个:
All you need inside the file is
您只需要在文件中
<script src="//connect.facebook.net/en_US/all.js"></script>
You can find out more from https://developers.facebook.com/docs/reference/javascript/#channel
您可以从https://developers.facebook.com/docs/reference/javascript/#channel了解更多信息