Spring social Authorisation Exception with Facebook

安稳与你 提交于 2020-01-02 06:46:23

问题


My website has suddenly started reporting this error when ever anyone logs in with Facebook:

HTTP Status 500 - Authorization is required for the operation, but the API binding was created without authorization.

type Exception report

message Authorization is required for the operation, but the API binding was created without authorization.

description The server encountered an internal error that prevented it from fulfilling this request.

exception org.springframework.social.MissingAuthorizationException: Authorization is required for the operation, but the API binding was created without authorization.

I have not changed anything relating to Facebook logging in recently, so why might my website be suddenly giving this error?


回答1:


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. 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. I suspect this is the problem and that I ought to be using v2.0.3: http://projects.spring.io/spring-social-facebook/. However, I don't have the skills to take this any further.



来源:https://stackoverflow.com/questions/43253914/spring-social-authorisation-exception-with-facebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!