经过身份验证的引用不起作用,但 oauth url 有效

发布于 2025-01-01 02:28:56 字数 839 浏览 4 评论 0原文

我有两种验证用户身份的方法。一种是我网站上的正常 oauth 方式:

https://www.facebook.com/dialog/oauth?client_id=161077997258367&redirect_uri=http%3A%2F%2Fwww.shopography.com%2F&scope= email%2Coffline_access%2Cuser_birthday%2Cpublish_actions%2Cpublish_stream%2Cread_stream%2Cstatus_update&state=%7B%22rID%22%3A570001%7D

这会返回一个代码,然后我可以用它来请求 auth_token。没有问题!

但是,当我单击 Facebook 内部配置为进行身份验证引用的链接时,我收到 Facebook 拒绝的代码,因此我没有获得 auth_token。

我通过身份验证引用得到的错误是: {“error”:{“message”:“验证验证码时出错。”,“type”:“OAuthException”}}

有什么想法吗?

I have two methods of authenticating users. One is the normal oauth way from my website:

https://www.facebook.com/dialog/oauth?client_id=161077997258367&redirect_uri=http%3A%2F%2Fwww.shopography.com%2F&scope=email%2Coffline_access%2Cuser_birthday%2Cpublish_actions%2Cpublish_stream%2Cread_stream%2Cstatus_update&state=%7B%22rID%22%3A570001%7D

This returns a code which I can then use to request an auth_token. No problems there!

However, when I click on a link internal to Facebook which is configured for authenticated referral, I get a code that Facebook rejects and therefore, I get no auth_token.

The error I get with authenticated referall is:
{"error":{"message":"Error validating verification code.","type":"OAuthException"}}

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆依然 2025-01-08 02:28:56

从经过身份验证的推荐请求中获取当前 URL,并将其使用到“&code=..”。作为交换访问令牌时的redirect_uri。

Get the current URL from the authenticated referral request and use it up to the '&code=..'. as redirect_uri when exchanging access token.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文