API 错误代码:191

API 错误代码:191

问题描述:

是的,收到 191 错误.我已经研究过并发现这个问题很有帮助:Facebook API 错误 191

yep, getting the 191 error. I've researched and found this question to be helpful: Facebook API error 191

我的网址如下:

https://www.facebook.com/dialog/oauth?client_id=&redirect_uri=http%3a%2f%2flocalhost%2fFb.201109Birthday%2fOAuth2.aspx

https://www.facebook.com/dialog/oauth?client_id=&redirect_uri=http%3a%2f%2flocalhost%2fFb.201109Birthday%2fOAuth2.aspx

但是,我收到一个错误:

However, I get an error:

API 错误代码:191 API 错误说明:指定的 URL 不是归应用程序所有 错误消息:Invalid redirect_uri: Given应用程序配置不允许使用 URL.

API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

我在任何地方都读到过,网址必须与应用程序设置页面中列出的内容相匹配.我有

I've read everywhere that the urls must match up to what's listed in the application's setting page. I've got

我还尝试了 local.facebook-apps.com(用local.facebook-apps.com"替换了上面的localhost"),并使用一个指向 127.0.0.1 的主机文件条目.但所有这些场景仍然给出了 191.

I've also tried local.facebook-apps.com (replaced "localhost" everywhere above with "local.facebook-apps.com") with a hosts file entry to point to 127.0.0.1. But all of these scenarios still give the 191.

从 Canvas URL 中删除 Birthday.aspx.

Remove the Birthday.aspx from the Canvas URLs.