使用开放图谱将内容发布到多个(未知)域?
我正在开发一个在各种 URL 上发布内容(“文章”)的应用程序,这些 URL 均由相同的 WordPress 安装控制(映射的域,全部由同一组代码/网络的一部分提供支持)。所有发布均通过一个中央 Facebook 应用程序完成。
我不知道这些 URL 的域是什么,因为它们由我们的用户控制,这些用户注册域,然后在我们服务的帐户中配置它们。
当我尝试使用 Open Graph 在这些网站(具有自定义域)之一上发布内容时,它们被拒绝并出现以下错误(错误代码 1611028):
URL * * * * 处类型为“article”的对象无效,因为域 指定的应用程序 ID“ * * *”不允许使用“* * * ”。你 可以验证您配置的“应用程序域”:...
由于我无法将所有域输入 Facebook,而且它们也不是从我的应用程序 URL 派生的,有什么方法可以让我完成这项工作吗?我可以在页面中添加某种神奇的 OG 标签或其他东西吗?或者只是不可能做我想做的事?
示例:
我们控制托管所有其他网站的中央服务 (website.com)。通常,他们会被分配类似 username.website.com 这样的 URL 作为他们的 URL。用户登录 website.com 并转到他们发布内容(博客、静态页面等)的仪表板。该内容出现在他们的网站上,类似于 username.website.com/2012/07/04/new-content/ (这是该页面上的全部内容。
该用户也可以选择注册一个域(假设是 mydomain .com)并将其映射到他们的帐户。因此,现在,在上面的示例中,他们的内容显示在 mydomain.com/2012/07/04/new-content/ 而不是 username.website.com(以及username.website.com URL 将重定向到新的映射域版本)。
当他们发布新内容时,我们希望能够发布到他们的墙上,以便他们的朋友可以看到他们发布的新内容,然后点击进入。并在 mydomain.com/... 上查看它。
问题是 mydomain.com 是数千个不同域之一,其中没有一个域基于 website.com URL,因此我们无法将它们添加到我们的应用程序中。当 FB 尝试从 mydomain.com 读取 OG 数据时,它拒绝它,因为它没有在我们的应用程序中配置。
I'm working on an application that publishes content ('articles') on a variety of URLs, which are all controlled by the same WordPress installation (mapped domains, all powered by the same set of code/part of a network). All of the publishing is done through one central Facebook App.
I have no idea what the domains for these URLS are going to be, since they are controlled by our users who register domains and then configure them within their account on our service.
When I attempt to use Open Graph to publish content on one of these sites (that has a customized domain), they are rejected with the following error (error code 1611028):
Object at URL * * * * of type 'article' is invalid because the domain
'* * * ' is not allowed for the specified application id ' * * *'. You
can verify your configured 'App Domain' at....
Since I can't enter all of the domains into Facebook, and since they are not derived from my App URL anyway, is there any way that I can have this work? Some sort of magic OG tag I can put in the pages or something? Or is it just not possible to do what I'm trying to do?
EXAMPLE:
We control the central service (website.com) which hosts all these other sites. Normally, they are allocated something like username.website.com as their URL. The user logs into website.com and goes to their dashboard where they publish content (a blog, static pages, whatever). That content appears on their site at something like username.website.com/2012/07/04/new-content/ (it is the entirety of the content on that page.
That user may also opt to register a domain (let's say mydomain.com) and map that to their account. So now, in the example above, their content appears at mydomain.com/2012/07/04/new-content/ instead of username.website.com (and the username.website.com URL will redirect to that new, mapped-domain version).
When they publish new content, we want to be able to publish to their Wall so that their friends can see they published something new, then click through and come and see it at mydomain.com/....
The problem is that mydomain.com is one of thousands of different domains, none of which are based on the website.com URL, so we can't add them to our app. When FB tries to read the OG data from mydomain.com, it rejects it because it's not configured within our app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,不是将内容动态发布到每个单独的域,而是将其发布到远程主机(具有单个域)。然后,为每个用户分发一个插件,以动态地从远程主机提取内容以显示在各自的网络主机上。
祝你好运!
Yes, rather than having the content dynamically publish to each of the separate domains, have it published to a remote host (with a single domain). Then, distribute a plugin for each of your users to dynamically pull off the content from your remote host to display on their respective webhosts.
Good luck!