FB.getLoginStatus() called before calling FB.init() error in console

前端 未结 2 468
野性不改
野性不改 2020-12-14 14:21

I am trying to check if a user is logged in with my app, but I am getting a

FB.getLoginStatus() called before calling FB.init().

<
2条回答
  •  长情又很酷
    2020-12-14 15:10

    You need to load the api asynchronously. Try removing your and updating your JS to:

    Oh and check the documentation!

提交回复
热议问题