Facebook App on Subdomains: Site URL vs App Domains

筅森魡賤 提交于 2019-11-27 20:39:37

EDIT: 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.

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.

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...

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

What worked for me was setting both the App Domains and Site URL with the site base domain (e.g. http://example.com). I could use the login in all of my subdomains.

Also, check if all your subdomains are using the same App ID (this mistake stole me a few minutes of life more than once).

Our Oauth login with wildcard subdomain had been working for the last few years but then suddenly stopped a couple of weeks back.

After some trial and error I have found the following to work (at this time: sept 2017)

  • turn on ” Use Strict Mode for Redirect URIs”
  • leave “Valid OAuth redirect URIs” field blank

I'm a bit concerned that this is not a very secure setup though :( I think it will work as a temporary solution while we figure out a better way to handle it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!