FB init function gives wrong version error

后端 未结 20 1382
故里飘歌
故里飘歌 2020-12-08 18:18

I\'m using the Facebook JS sdk, and I have created a new App today. Everything is configured properly. Using init function like:

window.fbAsyncInit = functio         


        
20条回答
  •  生来不讨喜
    2020-12-08 19:03

    I got it working by using all.js instead of sdk.js.
    In your case, it would look like:

    js.src = "//connect.facebook.net/pl_PL/all.js";
    

    instead of

    js.src = "//connect.facebook.net/pl_PL/sdk.js";
    

提交回复
热议问题