Facebook“无效的redirect_uri”,但网址对我来说看起来不错 [英] Facebook "Invalid redirect_uri", but the url looks fine to me

查看:239
本文介绍了Facebook“无效的redirect_uri”,但网址对我来说看起来不错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用OAuth验证Facebook时出现以下错误:

  {
错误:{
message:无效的redirect_uri:应用程序配置不允许给定URL,
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 

我知道有很多其他帖子有这个问题,但我看不到什么会使我的网址无效任何想法为什么我得到这个错误?

解决方案

您的重定向网址: http://dennys-m.appspot.com/fb_login/ 必须匹配 canvas url https://developers.facebook.com/apps/ 配置面板中。

$幸运的是,这些天,Facebook给出错误消息无效的redirect_uri:应用程序配置不允许给定URL。大约一年前没有出现这样的异常,只是奇怪的结果。


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"
   }
}

My url looks like this:

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?

解决方案

Your redirect url: http://dennys-m.appspot.com/fb_login/ must match the canvas url in https://developers.facebook.com/apps/ configuration panel.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆