gpt4 book ai didi

java - Facebook 的 Spring 社交授权异常

转载 作者:搜寻专家 更新时间:2023-11-01 02:37:42 25 4
gpt4 key购买 nike

每当有人使用 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.

我最近没有更改与 Facebook 登录相关的任何内容,那么为什么我的网站会突然出现此错误?

最佳答案

似乎 Facebook 的 Graph API 2.2 版(用于此类事情)于 2017 年 3 月 25 日不再可用:参见 https://developers.facebook.com/docs/apps/changelog .因此,尽管我的网站没有任何变化,但行为突然发生了变化。

我的网站使用 spring-social-facebook 库的 v1.1.0。我怀疑这是问题所在,我应该使用 v2.0.3:http://projects.spring.io/spring-social-facebook/ .但是,我没有进一步的技能。

关于java - Facebook 的 Spring 社交授权异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43253914/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com