I am trying to create facebook sign-in page according to this tutorial. I only changed the two lines
appId : \'370675846382420\', // App ID
channelUrl
I faced the same issue. I had entered http://www.example.com
in the App settings. When anybody accessed my website using the full URL, Facebook Login worked fine. But if somebody typed in the URL without www
in the browser, Facebook Login failed with this error message. When I changed the App Setting to http://example.com
everything started working fine.