问题描述
我们有一个为多个客户部署和定制的网站应用程序,跨越不同的域,我们正在该网站内开发一个 Facebook Connect 应用程序,以便人们可以通过我们的网站看到他们的朋友在做什么.
We have a website application that is deployed and customised for multiple customers, across different domains, we are developing a Facebook Connect app within this website, so people can see what their friends are doing through our sites.
我已将 Facebook 应用程序中的站点 url 和画布 url 设置为我的本地主机以进行调试,我想知道,如果我想跨多个域使用此应用程序怎么办?facebook 是否只允许每个应用程序回发到一个域?是否可以配置多个域?
I've set the site url and canvas url in my Facebook app to my localhost for debugging, I was wondering, what if I wanted to use this application across multiple domains? Will facebook only allow postback to one domain per application? Is it possible to configure multiple domains?
编辑 如果这不可能,大公司如何管理多个域?是否必须将其设置为每个应用程序的一个域,或者是否可以通过代码以编程方式添加新应用程序?
EDIT If this isn't possible how are large companies managing multiple domains? Will it have to be setup as one domain per application or is there a way to programatically add a new application through code?
EDIT 关于这个问题有进一步的讨论 这里
EDIT There is further discussion on this issue here
推荐答案
不幸的是,9 月 30 日, 2011 年的博文 措辞具有误导性.相关部分是在开发者应用程序中支持多个域".阅读该段落后,似乎对于可以将哪些域集中在一个应用程序中没有任何限制.
Unfortunately, the September 30, 2011 blog post is worded in a misleading way. The relevant section is "Support for Multiple Domains in the Developer App." Reading that paragraph, it would appear that there are no restrictions in terms of which domains can be lumped together under one application.
但是,当我尝试向现有应用程序添加第二个域时,我收到一条错误消息,指出必须从站点 URL 派生新域.一个 com 上描述了类似的经历.Facebook 开发者关系部门的某个人对该评论的回复证实了这一限制,他解释说所有应用域都必须从网站 URL 派生."
我认为造成混淆的原因是帖子本身的措辞不正确,即您的应用的 URL(网站和/或移动 Web URL)必须源自应用域字段中列出的域之一."
这篇关于是否可以将 Facebook 应用配置为跨多个域使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!