Spring Social Facebook 1.0.2 是 Spring 社交(Spring Social)项目中用于集成 Facebook API 的一个维护性补丁版本

张开发
2026/5/31 23:53:01 15 分钟阅读
Spring Social Facebook 1.0.2 是 Spring 社交(Spring Social)项目中用于集成 Facebook API 的一个维护性补丁版本
Spring Social Facebook 1.0.2 是 Spring 社交Spring Social项目中用于集成 Facebook API 的一个维护性补丁版本发布于 2014 年左右具体为 2014 年 3 月属于 Spring Social 1.x 系列。该版本主要包含以下内容修复了与 Facebook Graph API v2.0 兼容性相关的问题因 Facebook 在 2014 年初升级 API旧版客户端需适配修正了 OAuth2 授权流程中的若干 bug如重定向 URI 处理、access token 刷新异常等更新了部分依赖如 spring-social-core 版本对齐改进了用户资料映射UserProfile → FacebookProfile的健壮性属于停止维护EOL版本Spring Social 项目自 2018 年起已正式进入维护模式官方不再推荐使用且 Facebook 已于 2020 年彻底弃用 Graph API v2.x 及更早版本现代应用应迁移到 Facebook Login SDKv13、OAuth 2.1 流程或使用 Spring Security OAuth2 Client基于 OIDC替代。⚠️ 注意Spring Social Facebook 1.0.2不支持 Java 11 或 Spring Boot 2.0与当前主流技术栈严重不兼容仅适用于遗留系统维护参考。!-- Maven 依赖示例已过时仅作历史参考 --dependencygroupIdorg.springframework.social/groupIdartifactIdspring-social-facebook/artifactIdversion1.0.2.RELEASE/version/dependencySpring Social Facebook 1.0.2 ReleasedWe are pleased to announce the release of Spring Social Facebook 1.0.2!This release primarily adjusts Spring Social Facebook’s API binding to some recent and upcoming changes in the Facebook Graph API. Specifically:The picture field of many objects in the Facebooks Graph API is changing from a simple string containing the URL to an object with additional information about the picture. Spring Social Facebooks API binding has been changed to handle either form and return the URL string. The likes field of the Graph APIs Comment object has been renamed to like_count. Spring Social Facebooks API binding has been changed to bind to the new like_count field. The picture property of Page, Post, and Video has been deprecated. While it will still return the URL string for a picture in 1.0.2, this property will be replaced in Spring Social Facebook 1.1.0 with one that returns an object with more complete metadata about the picture. The position property of the Photo object has been deprecated, as this property will no longer be populated by the Facebook Graph API. This property will be removed in Spring Social Facebook 1.1.0.To get the software, download the release distribution or simply add/update the maven artifacts to your project:org.springframework.social spring-social-facebook 1.0.2.RELEASEWe are continuing to monitor any changes that Facebook may apply in their graph API and if an adjustment in Spring Social Facebook’s API binding is required, will release followup maintenance releases with those adjustments. We are also looking ahead to the 1.1.0 release of Spring Social, Spring Social Twitter, and Spring Social Facebook with some exciting new features in the coming months. We invite you to participate in the discussion in the Spring Social forum, in the issue tracker (Core|Facebook|Twitter), or at GitHub (Core|Facebook|Twitter).comments powered by Disqus

更多文章