具有不同子域的 OpenGraph 对象
我们的每个开发人员都有他/她自己的子域,用于开发目的,例如,
http://fred.oursite.com
http://joe.oursite.com
http://www.oursite.com
我们目前有一个 Facebook 应用程序,我们可以在所有这些不同的子域之间共享该应用程序,没有任何问题。
然而,开放图似乎对“og:url”的域名非常严格,并且它似乎不允许对子域进行任何类型的匹配。这会拖累开发 - 我们的流程是完全隔离“实时”和“开发”站点。如果有一个功能允许我们指定域列表,那就太好了?
拥有不同国家/地区特定顶级域名 (TLD) 的任何人如果将不同域名之间的内容分开,肯定会感到头疼?
Each of our developers has his/her own subdomain, for development purposes, e.g.
http://fred.oursite.com
http://joe.oursite.com
http://www.oursite.com
We currently have a Facebook App which we share between all these different subdomains without any problems.
However open graph seems to be really strict about domain names for the "og:url", and it doesn't seem to allow any kind of matching for subdomains. This is a drag on development - our process is to completely isolate the 'live' and 'dev' sites. It would be great if there was a feature allowing us to specify a list of domains?
Anyone with different Country-specific TLDs will surely be given a headache if they separate things between their different domains?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于我的每个环境(dev1、dev2、test、prod),我们配置了一个单独的应用程序。这很痛苦,但这是使其发挥作用的唯一好方法。
For each of my environments (dev1, dev2, test, prod), we have a separate app configured. It's a pain but it's the only good way to make it work.