Answering my own question:
If you want your FB application to support wildcard subdomains (for example, http: //*.yourdomain.com), you must leave the "Valid UA redirect URIs" field blank in your application. But make sure that the "Domain Domain" field is set to "yourdomain.com", and the "Website URL" field is set to " http://yourdomain.com "
It was hard for me to understand this thing and finally succeeded after a week of research. I hope this will be useful for people struggling with the same problem.
Bonus: If your FB application does not allow you to leave the "Valid UA redirect URIs" field empty, try creating a new application. When you create a new fb application, it will by default set an empty field. So leave it as it is, and you should be fine.
Phantom007
source share