From 824c68356d915fc9bb5400341014b0729f612f09 Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Fri, 1 Jan 2021 10:40:18 +0800 Subject: [PATCH] =?UTF-8?q?:pushpin:=20=E5=8D=87=E7=BA=A7=20FaceBook=20API?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC=E5=88=B0=20v9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOGS.md | 3 ++- src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 1b1cd8e..3288210 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -6,10 +6,11 @@ - PR - 合并 [Github #101](https://gitee.com/yadong.zhang/JustAuth/pulls/101):支持喜马拉雅登录 - 合并 [Github #105](https://gitee.com/yadong.zhang/JustAuth/pulls/105):支持企业微信网页授权登录 - - 合并 [Github #107](https://gitee.com/yadong.zhang/JustAuth/pulls/107):添加AuthAlipayRequest网络代理构造器 + - 合并 [Github #107](https://gitee.com/yadong.zhang/JustAuth/pulls/107):添加AuthAlipayRequest网络代理构造器,解决 Github Issue [#102](https://github.com/justauth/JustAuth/issues/102) - 修改 - 修改喜马拉雅配置参数,将`ClientOsType`参数提到 AuthConfig 中 - AuthChecker 中增加对喜马拉雅平台的校验 + - 升级 facebook api 版本到 v9.0,解决 Gitee Issue [#I2AR5S](https://gitee.com/yadong.zhang/JustAuth/issues/I2AR5S) ## 1.15.8 diff --git a/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java b/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java index 16d1a50..6158474 100644 --- a/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java +++ b/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java @@ -315,17 +315,17 @@ public enum AuthDefaultSource implements AuthSource { FACEBOOK { @Override public String authorize() { - return "https://www.facebook.com/v3.3/dialog/oauth"; + return "https://www.facebook.com/v9.0/dialog/oauth"; } @Override public String accessToken() { - return "https://graph.facebook.com/v3.3/oauth/access_token"; + return "https://graph.facebook.com/v9.0/oauth/access_token"; } @Override public String userInfo() { - return "https://graph.facebook.com/v3.3/me"; + return "https://graph.facebook.com/v9.0/me"; } }, /** -- GitLab