Facebook App on Subdomains: Site URL vs App Domains

Viewed 25074

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

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

3 Answers

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.

Related