让 RPXNow 和 Facebook Open Graph 更好地发挥作用

发布于 2024-08-30 19:38:19 字数 566 浏览 11 评论 0原文

使用 RPXNow 的要求是将 Facebook 应用程序的连接 URL 设置为 http://mydomain.rpxnow.com

我只是想实现 Facebook 的 Open Graph,我看到它告诉你 设置 Base域 到将包含 app_id 的域。

然而,Facebook 不允许这两个域名看起来不同。当我尝试将基本 URL 设置为 mydomain.com 时,出现此错误:

Validation failed.
Base Domain is not valid. Connect URL must be derived from your Base Domain.

我应该创建两个应用程序 - 一个用于 RPXNow,另一个用于 Open Graph?如果没有,我该怎么办?

谢谢

A requirement to use the RPXNow is to set your Facebook application's connect url to http://mydomain.rpxnow.com.

I was just trying to implement Facebook's Open Graph and I see that it tells you to set the Base Domain to the domain that will contain the app_id.

However, Facebook does not allow these two domains to look different. When I try to set the base url to mydomain.com, I get this error:

Validation failed.
Base Domain is not valid. Connect URL must be derived from your Base Domain.

Should I create two apps - one for use with RPXNow, and another for use with Open Graph? If not, what should I do?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

十秒萌定你 2024-09-06 19:38:19

关于您链接到的基本域的 Facebook 页面声明如下:

Facebook Connect 将用户凭据存储在您应用程序域的 Cookie 中。默认情况下,chicago.citysearch.com 上设置的 cookie 在 sanfrancisco.citysearch.com 上无法读取 - 浏览器将它们视为单独的域。如果设置了基域,那么 Facebook 会有意在基域上设置 cookie,从而使 cookie 可以跨多个子域读取。这允许您跨多个子域共享一个身份验证会话。
注意:无法跨多个域共享 cookie。 因此,例如,如果您有站点 cnet.com 和 news.com,则无法让浏览器发送这两个域的 cookie 相同。其中每一个都需要单独的 API 密钥和单独的身份验证。

由于您的域和 rpxnow.com 是不同的基本域,因此您似乎需要一个自定义领域(例如,login.yourdomain.com),该领域由 RPXNow 提供,需要额外付费。您可能需要升级到“Pro”帐户(~$95/月+?)或直接联系 RPXNow / Janrain 并询问他们您的选择。

The Facebook page regarding Base Domains you linked to states the following:

Facebook Connect stores user credentials in cookies on your application's domain. By default, a cookie set on chicago.citysearch.com would not be readable on sanfrancisco.citysearch.com - the browser treats them as separate domains. If the base domain is set, then Facebook will intentionally set the cookies on the base domain, thus making the cookies readable across multiple subdomains. This allows you to share one authentication session across multiple subdomains.
Note: There is no way to share a cookie across multiple domains. So, for example, if you have a site cnet.com and news.com, then there is no way to make the browser send the same cookies to both those domains. Each of these would require separate API key and separate authentication.

Since your domain and rpxnow.com are different base domains, it seems like you'd need a custom realm (eg. login.yourdomain.com), which is offered from RPXNow at additional cost. You'd probably have to upgrade to "Pro" account (~$95/mo+ ?) or contact RPXNow / Janrain directly and ask them your options.

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