且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法从 Facebook 获取访问令牌.收到 OAuthException 提示“验证验证码时出错";

更新时间:2022-03-16 22:29:19

我最近正好处理了这个问题:一切都匹配,但失败了 OAuthException.使它工作的事情是从以下位置更改重定向 uri(在两个流请求中):

I recently dealt with exactly this problem: everything matched, but it failed with the OAuthException. The thing that made it work was to change the redirect uri (in both requests for the flow) from:

http://foo.example.com

http://foo.example.com/

即,添加尾部斜杠.然后它起作用了.愚蠢和愚蠢,但你去了.

I.e., add the trailing slash. And then it worked. Stupid and silly, but there you go.