Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook app redirecting to different subdomains

We're integrating facebook in our platform; we serve different customers and each one has a different access URL: http://customer1.example.com; http://customer2.example.com and so on. We're implementing OAuth 2.0 so customers are able to perform certain facebook actions from within the app.

From the looks of the documentation (https://developers.facebook.com/docs/authentication/), it seems that we'll need one facebook app per customer, to make the authorization flow work. Is there a way to specify a "wildcard" Site URL, let's say: http://*.example.com ?

like image 975
Daniel S Avatar asked Oct 05 '11 18:10

Daniel S


People also ask

Can you redirect subdomain?

Under Modify a Subdomain, locate the domain you want to redirect, then click its Manage Redirection link on the right. In the text box, type the URL you would like visitors to be redirected to if they go to the subdomain sample1.hgexample.com. Click Save. You will see the redirected URL under the Redirection column.

What is subdomain of Facebook?

The Facebook subdomain is a subdomain designed for your social media presence. It directly links to your Facebook profile or a social media presence (Twitter, LinkedIn, etc.) of your choice. A subdomain of this type can be defined at my.world4you.com under Your package > Domains > Subdomains > Facebook subdomain.

What is app domains in Facebook app?

the app domain is your domain name. Before you enter your domain, first click on Add Platform, select website, enter your site URL and mobile site url. Save the settings. Thereafter, you can enter the domain name in the App domains field.


1 Answers

UPDATE 3/19/2014 - there have been complaints that this functionality has been disabled.


The tooltip text next to the App Domains setting in the facebook settings page explicitly states that this is possible:

Enable auth on domain and subdomain(s) (e.g., "example.com" will enable *.example.com)

like image 163
logan Avatar answered Oct 29 '22 03:10

logan