具有不同子域的 OpenGraph 对象

发布于 2024-12-25 00:29:30 字数 362 浏览 4 评论 0原文

我们的每个开发人员都有他/她自己的子域,用于开发目的,例如,

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恏ㄋ傷疤忘ㄋ疼 2025-01-01 00:29:30

对于我的每个环境(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文