Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook App on Subdomains: Site URL vs App Domains

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?

like image 547
Sabrina Leggett Avatar asked Aug 13 '12 10:08

Sabrina Leggett


People also ask

What is app domains in Facebook app?

It's simply the domain that your "facebook" application (wich means application visible on facebook but hosted on the website www.xyz.com) will be hosted. So you can put App Domain = www.xyz.com.

What is the difference between domains and subdomains?

Follow. Regular domains are your standard URLs like splashthat.com or splashthat. events. Subdomains are a unique URL that lives on your purchased domain as an extension in front of your regular domain like support.splashthat.com or blockparty.splashthat.com.

How do you fix Facebook apps error can't load URL the domain of this URL isn't included in the app's domains?

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.


1 Answers

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

like image 198
Sabrina Leggett Avatar answered Nov 15 '22 18:11

Sabrina Leggett