Facebook Authentication - Unsafe JavaScript attempt to access frame with URL

后端 未结 7 1249
别那么骄傲
别那么骄傲 2021-01-11 20:14

I am trying to implement Facebook Login System into my website.

While it try to connect to facebook, I get an error from console log:

Unsafe JavaScri         


        
7条回答
  •  醉酒成梦
    2021-01-11 20:40

    You can only use the same domain name in which you have registered with Facebook apps.

    1. You need a public domain name (www.example.com).
    2. You need to register with Facebook apps.
    3. Get the 2 keys from the Facebook and use in the code:
    
        appId      : 'xxxxxxxxxxxxxx',
    

提交回复
热议问题