Your Facebook application is configured for a domain that you are not visiting. If your application is configured to
www.example.com
and you navigate to example.com then it will not work. This is a security implementation from Facebooks end. The workaround is to provide a host level or htaccess based redirect to either/or address you prefer (with or without www).