Facebook“无效的redirect_uri",但网址对我来说看起来不错 [英] Facebook "Invalid redirect_uri", but the url looks fine to me
问题描述
我在尝试使用 OAuth 向 Facebook 进行身份验证时收到以下错误:
I'm getting the following error when trying to authenticate to Facebook with OAuth:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException"
}
}
我的网址如下所示:
https://graph.facebook.com/oauth/authorize?client_id=283993944973616&redirect_uri=http://dennys-m.appspot.com/fb_login/&scope=publish_stream,email&display=popup
我知道还有很多其他帖子有这个问题,但我看不出是什么会使我的网址无效.知道为什么我会收到此错误吗?
I know there are a lot of other posts with this problem, but I can't see what would make my url invalid. Any ideas why I'm getting this error?
推荐答案
您的重定向网址:http://dennys-m.appspot.com/fb_login/ 必须与 https://developers.facebook.com/apps/ 配置面板.
Your redirect url: http://dennys-m.appspot.com/fb_login/ must match the canvas url
in https://developers.facebook.com/apps/ configuration panel.
幸运的是,最近 Facebook 给出了错误消息 Invalid redirect_uri: Given URL is not allowed by the Application configuration
.大约一年前没有出现这种异常,只是奇怪的结果.
Fortunately, these days Facebook gives the error message Invalid redirect_uri: Given URL is not allowed by the Application configuration
. About a year ago no such exception appeared, just strange results.
这篇关于Facebook“无效的redirect_uri",但网址对我来说看起来不错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!