OpenGraph Objects with different sub-domains

不羁岁月 提交于 2019-12-11 05:17:02

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8757606/opengraph-objects-with-different-sub-domains

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!