添加facebook登录
This commit is contained in:
parent
71361b3127
commit
4fe4260784
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue