具有不同子域的OpenGraph对象 [英] OpenGraph Objects with different sub-domains
问题描述
出于开发目的,我们每个开发人员都有自己的子域,例如
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
我们目前有一个Facebook App,我们可以在所有这些不同子域之间共享它们,而不会出现任何问题.
We currently have a Facebook App which we share between all these different subdomains without any problems.
但是,打开的图似乎对"og:url"的域名确实非常严格,并且似乎不允许子域进行任何形式的匹配.这拖累了开发工作-我们的流程是完全隔离活动"和开发"站点.如果有一项允许我们指定域列表的功能,那会很好吗?
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?
具有不同国家/地区顶级域名(TLD)的任何人,如果将不同域之间的内容分开,肯定会感到头痛吗?
Anyone with different Country-specific TLDs will surely be given a headache if they separate things between their different domains?
推荐答案
对于我的每个环境(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.
这篇关于具有不同子域的OpenGraph对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!