📝 更新文档、facebook添加获取link属性
This commit is contained in:
@@ -77,8 +77,6 @@
|
|||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
#### [2020年4月10日(周五) 晚8点 直播间首秀《JustAuth 从开源到喜提「码云GVP」之路》](https://mp.weixin.qq.com/s?__biz=MzA3NDk3OTIwMg==&mid=2450633207&idx=1&sn=50320bb20d468cb06e0c7f96d7181bb0&chksm=8892931abfe51a0c9d051b468ba4046beb5b50d8393b9e308798e25954184b5a0ef2a133203a&token=977722026&lang=zh_CN#rd)
|
|
||||||
|
|
||||||
JustAuth,如你所见,它仅仅是一个**第三方授权登录**的**工具类库**,它可以让我们脱离繁琐的第三方登录SDK,让登录变得**So easy!**
|
JustAuth,如你所见,它仅仅是一个**第三方授权登录**的**工具类库**,它可以让我们脱离繁琐的第三方登录SDK,让登录变得**So easy!**
|
||||||
|
|
||||||
项目开源地址:[gitee](https://gitee.com/yadong.zhang/JustAuth) | [github](https://github.com/zhangyd-c/JustAuth)
|
项目开源地址:[gitee](https://gitee.com/yadong.zhang/JustAuth) | [github](https://github.com/zhangyd-c/JustAuth)
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||

|

|
||||||
# JustAuth <small>1.15.1</small>
|
# JustAuth <small>1.15.1</small>
|
||||||
|
|
||||||
<a href="https://mp.weixin.qq.com/s?__biz=MzA3NDk3OTIwMg==&mid=2450633207&idx=1&sn=50320bb20d468cb06e0c7f96d7181bb0&chksm=8892931abfe51a0c9d051b468ba4046beb5b50d8393b9e308798e25954184b5a0ef2a133203a&token=977722026&lang=zh_CN#rd" target="_blank"><h2><strong style="color:red">2020年4月10日(周五) 晚8点 直播间首秀《JustAuth 从开源到喜提「码云GVP」之路》</strong></h2></a>
|
|
||||||
|
|
||||||
<strong>史上最全的整合第三方登录的开源库</strong>
|
<strong>史上最全的整合第三方登录的开源库</strong>
|
||||||
|
|
||||||
<strong>Login, so easy</strong>
|
<strong>Login, so easy</strong>
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public class AuthFacebookRequest extends AuthDefaultRequest {
|
|||||||
.uuid(object.getString("id"))
|
.uuid(object.getString("id"))
|
||||||
.username(object.getString("name"))
|
.username(object.getString("name"))
|
||||||
.nickname(object.getString("name"))
|
.nickname(object.getString("name"))
|
||||||
|
.blog(object.getString("link"))
|
||||||
.avatar(getUserPicture(object))
|
.avatar(getUserPicture(object))
|
||||||
.location(object.getString("locale"))
|
.location(object.getString("locale"))
|
||||||
.email(object.getString("email"))
|
.email(object.getString("email"))
|
||||||
@@ -79,7 +80,7 @@ public class AuthFacebookRequest extends AuthDefaultRequest {
|
|||||||
protected String userInfoUrl(AuthToken authToken) {
|
protected String userInfoUrl(AuthToken authToken) {
|
||||||
return UrlBuilder.fromBaseUrl(source.userInfo())
|
return UrlBuilder.fromBaseUrl(source.userInfo())
|
||||||
.queryParam("access_token", authToken.getAccessToken())
|
.queryParam("access_token", authToken.getAccessToken())
|
||||||
.queryParam("fields", "id,name,birthday,gender,hometown,email,devices,picture.width(400)")
|
.queryParam("fields", "id,name,birthday,gender,hometown,email,devices,picture.width(400),link")
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user