简体   繁体   English

Facebook的Spring社交授权异常

[英]Spring social Authorisation Exception with Facebook

My website has suddenly started reporting this error when ever anyone logs in with Facebook: 当有人登录Facebook时,我的网站突然开始报告此错误:

HTTP Status 500 - Authorization is required for the operation, but the API binding was created without authorization. HTTP状态500 - 操作需要授权,但API绑定是在未经授权的情况下创建的。

type Exception report 类型异常报告

message Authorization is required for the operation, but the API binding was created without authorization. 消息操作需要授权,但API绑定是在未经授权的情况下创建的。

description The server encountered an internal error that prevented it from fulfilling this request. description服务器遇到内部错误,导致无法完成此请求。

exception org.springframework.social.MissingAuthorizationException: Authorization is required for the operation, but the API binding was created without authorization. exception org.springframework.social.MissingAuthorizationException:操作需要授权,但API绑定是在未经授权的情况下创建的。

I have not changed anything relating to Facebook logging in recently, so why might my website be suddenly giving this error? 我最近没有改变任何与Facebook登录相关的内容,那么为什么我的网站会突然发出此错误?

It seems that version 2.2 of Facebook's Graph API (which is used for this kind of thing) ceased to be available on 25/3/17: See https://developers.facebook.com/docs/apps/changelog . 似乎Facebook的Graph API 2.2版(用于此类事情)在25/3/17上不再可用:请参阅https://developers.facebook.com/docs/apps/changelog Hence, the sudden change in behaviour in spite of there being no change to my website. 因此,尽管我的网站没有变化,但行为突然发生了变化。

My website uses v1.1.0 of the spring-social-facebook library. 我的网站使用spring-social-facebook库的v1.1.0。 I suspect this is the problem and that I ought to be using v2.0.3: http://projects.spring.io/spring-social-facebook/ . 我怀疑这是问题,我应该使用v2.0.3: http ://projects.spring.io/spring-social-facebook/。 However, I don't have the skills to take this any further. 但是,我没有进一步采取这种做法的技能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM