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

查看:266
本文介绍了子网域上的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.

我最初应该将应用程式网域字段留空,只是尝试将域名放入网站网址字段( http://example.com ),这不行。不要在应用程式网域中放置网址的完整网址( 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与 http: ///example.com 在SiteURL字段中,它与子域合作。我假设应用程序域字段是多余的...

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天全站免登陆