多个域同一应用程序,请反馈
观看 F8 主题演讲后,我的公司希望将这些选项与新的开放图测试版一起使用。
情况:
该公司分为两个不同的站点,一个唱片公司和一个艺人管理站点。 两个网站都有相同的艺术家,但有不同的发布选项。
艺术家网站将活动日期和地点发布到图形 API,唱片公司会发布是否有人收听或购买曲目。
所有艺术家也都有自己的域名,并且需要拥有上述网站的所有选项,但仅限于艺术家本身。
解释如上所述的设置,我是否需要为每个站点创建一个应用程序来添加功能,即使它们基本上都是相同的?有没有办法在所有域上使用 1 个应用程序?
After watching the F8 keynote my company wants to use the options with the new open graph beta.
The situation:
The company is devided in 2 different sites, a record label and a artist management site.
Both sites have the same artists, but have different publish options.
The artist site publish event dates and locations to the graph API and the record label publishes if somebody listens or buys a track.
All the artist have their own domains too and will need to have all the options of the above sites, but then only for the artist itself.
Explaining the setup as mentioned above, do I need to create a app for each site to add the functionality, even though they are basically all the same?? Is there a way to use 1 app on all domains?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用一个应用程序来托管所有元数据页面,然后在用户单击链接时重定向用户。
我会将您的网站之一表示为规范网站并主要使用它。仅当没有内容时才重定向。
You can use one app which hosts all the metadata pages and then redirects users when they click through the links.
I would denote one of your sites to be canonical and use it primarily. Only redirect if it doesn't have the content.
另一种选择是迁移您的网站,使它们位于根域的子域下。 Facebook 身份验证和开放图支持跨根域的所有子域使用单个应用程序。
Another option would be to migrate your sites so they live under subdomains of the root domain. Facebook authentication and open graph supports using a single application across all subdomains of a root domain.