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 ran into this with the IBM BlueMix SSO service and had to use the BlueMix provided redirect URL as my "site" URL instead of my actually web application site URL to fix it. Once I made that change the problem went away.