子域上的 Facebook 应用程序:站点 URL 与应用程序域 [英] Facebook App on Subdomains: Site URL vs App Domains

查看:31
本文介绍了子域上的 Facebook 应用程序:站点 URL 与应用程序域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 facebook 和其他堆栈溢出问题,应用域字段支持子域,但是在站点 URL 字段(在带有 Facebook 登录的网站下)它们不支持.我正在创建一个用于许多不同子域的应用程序(实际上是链接的子域,例如 http://clientname.projectname.mydomain.com) 允许用户通过 facebook 登录(通过 js),然后检索他们的数据(通过 js 和 php).

According to facebook and other stack overflow questions, subdomains are supported in the App Domain field, however in the Site URL field (under Website with Facebook Login) they aren't. I'm creating an app for use on many different subdomains (actually chained subdomains like http://clientname.projectname.mydomain.com) that allows users to login through facebook (via js), and then retrieves their data (both through js and php).

您如何设置您的 Facebook 应用以使其支持多个子域?

How do you setup your facebook app so it supports multiple subdomains?

推荐答案

显然这不再起作用(请参阅下面的评论)

Apparently this isn't working anymore (see comments bellow)

我刚开始在田野里玩耍,我想我真的发现了它不起作用的原因.

I just started playing around with the fields, and I think I actually found out why it wasn't working.

我最初肯定是将应用域字段留空,只是尝试将该域放入站点 URL 字段中 (http://example.com),这是行不通的.无需在应用程序域中放入站点 URL 的完整 url (http://clientname.projectname.example.com) 工作.

I must have originally left the app domain field blank, and just tried putting the domain into the Site URL field (http://example.com), which wouldn't work. Without putting in an app domain only the full url for Site URL (http://clientname.projectname.example.com) worked.

一旦我将 mydomain.com 与 SiteURL 中的 http://example.com 一起放入应用程序域字段中领域它与子域一起使用.我还以为应用域字段是多余的...

Once I put mydomain.com into the App Domain field along with http://example.com in the SiteURL field it worked with subdomains. And I had assumed the app domain field was redundant...

我想这意味着我可以删除我创建的额外 20 个应用程序:-)

I guess this means I can delete the extra 20 apps I created :-)

这篇关于子域上的 Facebook 应用程序:站点 URL 与应用程序域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆