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?
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