Mobile Cordova / phonegap facebook login without plugin, using only url

前端 未结 2 1911
说谎
说谎 2021-01-21 09:23

This login system is working perfectly on desktop clients. The user is redirect to facebook to allow the app and then redirected to my website:

\"https://graph.f         


        
相关标签:
2条回答
  • 2021-01-21 09:53

    The URL is malformed, but that seems so apparent I don't mean to insult anyone by stating it... see bold items below...

    http://undefined/proxy/https://graph.facebook.comMISSING_SLASH_HEREhttps://www.facebook.com/dialog/oauth?client_id=1567960953444888&redirect_uri=this_is_correct%2Ffacebook_login.php&scope=user_friends&state=1

    0 讨论(0)
  • 2021-01-21 10:14

    I think it can be caused by two things.

    Maybe the url can't be resolved due to whitelists. Use this plugin if you aren't using it, and use wildcards just for test

    https://github.com/apache/cordova-plugin-whitelist

    If not, are the desktop login using some kind of cookies? Maybe you have to use it.

    0 讨论(0)
提交回复
热议问题