如何修复“ FacebookTokenError:验证码错误”。

时间:2019-04-12 17:56:02

标签: node.js facebook api

尝试使用Facebook登录时,出现以下错误消息:

FacebookTokenError: Error validating verification code.
Please make sure your redirect_uri is identical to the one you used in the
OAuth dialog request

OAuth对话框请求中的网址是:

https://www.facebook.com/v3.2/dialog/oauth?response_type=code&redirect_uri=https%3A%2F%2Furl.com%2Fauth%2Ffacebook%2Fcallback&scope=email%2Cpublic_profile&client_id=<id here>

在该应用程序的Facebook登录设置中,我添加了可能想到的所有网址变体:

https://url.com/auth/facebook/callback
https://url.com/auth/facebook/callback/
https://url.com/auth/facebook/callback?code=
https://url.com/auth/facebook/callback?scope=email,public_profile&client_id=<id here?

我应该添加哪个URL?

0 个答案:

没有答案