check out this
https://developers.facebook.com/apps//summary
look at the App Domain: part of "Basic Info:"
if you specify "www.example.com" than it will only work for www.example.com. If you use "example.com" it will treat it as *.example.com and work for all subdomains