Skip to content

Commit

Permalink
📝 更新文档、facebook添加获取link属性
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyd-c committed Apr 17, 2020
1 parent 7be51f1 commit 77603cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!**

项目开源地址:[gitee](https://gitee.com/yadong.zhang/JustAuth) | [github](https://github.com/zhangyd-c/JustAuth)
Expand Down
2 changes: 0 additions & 2 deletions docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
![](_media/justauth@0,25x.png)
# 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>Login, so easy</strong>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/zhyd/oauth/request/AuthFacebookRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected AuthUser getUserInfo(AuthToken authToken) {
.uuid(object.getString("id"))
.username(object.getString("name"))
.nickname(object.getString("name"))
.blog(object.getString("link"))
.avatar(getUserPicture(object))
.location(object.getString("locale"))
.email(object.getString("email"))
Expand Down Expand Up @@ -79,7 +80,7 @@ private String getUserPicture(JSONObject object) {
protected String userInfoUrl(AuthToken authToken) {
return UrlBuilder.fromBaseUrl(source.userInfo())
.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();
}

Expand Down

0 comments on commit 77603cf

Please sign in to comment.