是否可以配置一个可以跨多个域使用的Facebook应用程序? [英] Is it possible to configure a Facebook app to be used across multiple domains?

查看:99
本文介绍了是否可以配置一个可以跨多个域使用的Facebook应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个为不同领域的多个客户部署和定制的网站应用程序,我们正在本网站开发一个Facebook Connect应用程序,让人们可以通过我们的网站了解他们的朋友们在做什么。



我已将我的Facebook应用程序中的网站url和canvas url设置为本地主机进行调试,我想知道如果我想在多个域中使用此应用程序? Facebook只允许每个应用程序回发一个域?可以配置多个域吗?



编辑如果不可能,大公司如何管理多个域?是否必须将其设置为每个应用程序的一个域,或者是否通过代码编程添加新的应用程序?



编辑有关于此问题的进一步讨论此处

$ b 2011年9月30日博客文章的措辞是误导性的。相关部分是在开发者应用程序中支持多个域。阅读该段落,似乎没有任何限制,哪些域可以在一个应用程序中集中在一起。



但是,当我尝试添加第二个域现有应用程序,我收到一条错误消息,指出新域必须从站点URL导出。该博文上的一个评论描述了类似的经历。而且,Facebook的开发者关系人员对该评论的回复证实了这一限制,解释说所有应用程序域必须来自网站URL。



我相信这个混乱是由于帖子本身的错误字词引起的,其中说:您的应用程序的URL(网站和/或移动网址)必须来自应用程序域域中列出的一个域。



*更新:只是为了澄清允许哪些类型的域名,假设您的网站URL是mywebsite.com。您可以允许添加mywebsite.co.uk作为附加应用程序域,但是您可以不允许添加myalternatewebsite.com。


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.

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 There is further discussion on this issue here

解决方案

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.

However, when I tried adding a second domain to an existing application, I received an error message saying that the new domain must be derived from the Site URL. One comment on that blog post described a similar experience. And that restriction was confirmed by a reply to that comment by someone in Developer Relations at Facebook, explaining that "All app domains must be derived from the site URL."

I believe the confusion arises from incorrect wording in the post itself, which says "Your App’s URL (Website and/or Mobile Web URL) must be derived from one of the domains listed in the App Domain field."

*Update: Just to clarify what types of domains are allowed, let's say your Site URL is "mywebsite.com". You would be allowed to add "mywebsite.co.uk" as an additional App Domain, but you would not be allowed to add "myalternatewebsite.com".

这篇关于是否可以配置一个可以跨多个域使用的Facebook应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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