FB.getLoginStatus not calling its callback

后端 未结 11 1141
半阙折子戏
半阙折子戏 2021-02-18 13:11

The title really says it all. Under some (undetermined) conditions FB.getLoginStatus() just stops working and won\'t invoke the callback I gave it. The only interesting clues

11条回答
  •  时光说笑
    2021-02-18 13:56

    In Facebook App Settings, go to Client OAuth Settings, look at Valid OAuth redirect URIs

    Make sure you have listed all URIs which are the domains from which Facebook SDK is being invoked. For example:

    I develop at localhost:5000 and deploy to Heroku. Notice the format: http://domain.name/

提交回复
热议问题