Facebook app for redirecting to different subdomains

We integrate facebook into our platform; we serve different customers, and each of them has a different access URL: http://customer1.example.com ; http://customer2.example.com and so on. We are introducing OAuth 2.0 so that clients can perform certain actions on facebook from within the application.

From the look of the documentation ( https://developers.facebook.com/docs/authentication/ ) it seems that we need one facebook application for each client to do the work with authorization privileges. Is there a way to specify the URL of a β€œwildcard” site, say: http: //*.example.com?

+6
source share
2 answers

UPDATE 3/19/2014 - There have been complaints that this feature is disabled.


The help text next to the "Application Domains" setting on the facebook page clearly indicates that this is possible :

Enable domain and subdomain authorization (for example, "example.com" will include * .example.com)

+8
source

Not. You need a fixed URL. If you want to separate customers, I would put a callback url that can redirect the user correctly.

So you have a callback url like "http://callback.example.com". The application on callback.example.com, is looking for a client who has registered and redirects them to the corresponding URL.

-1
source

Source: https://habr.com/ru/post/898697/


All Articles