I am trying to create facebook sign-in page according to this tutorial. I only changed the two lines
appId : \'370675846382420\', // App ID channelUrl
For me it was the "Single Sign On" (can be seen at the bottome of the screenshot in phwd's answer) setting that was turned off.