添加facebook登录

This commit is contained in:
junleea 2025-05-01 13:16:20 +08:00
parent 71361b3127
commit 4fe4260784
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ func DoGoogleCallBack(state *proto.ThirdPartyLoginState, code string) {
func DoFaceBookCallBack(state *proto.ThirdPartyLoginState, code string) {
//根据code获取Access Token
tokenResp, err := worker.GetFacebookAccessTokenByCode(code, "https://pm.ljsea.top/tool/third_party_callback", worker.GoogleClientID, worker.GoogleClientSecret)
tokenResp, err := worker.GetFacebookAccessTokenByCode(code, "https://pm.ljsea.top/tool/third_party_callback", worker.FacebookClientID, worker.FacebookClientSecret)
if tokenResp.AccessToken == "" {
log.Println("get google access token is empty")