I am trying to create facebook sign-in page according to this tutorial. I only changed the two lines
appId : \'370675846382420\', // App ID
channelUrl
The other answers here are excellent and accurate. In the interest of adding to the list of things to try:
Double and triple-check that your app is using the right application ID and secret key. In my case, after trying many other things, I checked the application ID and secret key and found that I was using our production settings on our development system. Doh!
Using the correct application ID and secret key fixed the problem.