更新时间:2023-12-01 20:57:58
一种简单的方法:
FB.login
获取用户令牌后,将令牌通过AJAX传输到服务器,并在服务器上使用-通过某些SDK或axios/fetch/随便什么.FB.login
, transfer the Token to the server with AJAX and use it on the server - either with some SDK, or with axios/fetch/whatever.Alternatively, you can build your own login flow: https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/