API错误code:191 [英] API Error Code: 191

查看:159
本文介绍了API错误code:191的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,得到了​​191错误。
我研究发现这个问题是有帮助的:
Facebook的API错误191

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

我的网址如下:

<一个href=\"https://www.facebook.com/dialog/oauth?client_id=\">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错误code:191的API错误描述:指定的URL不
  应用程序错误信息资:无效REDIRECT_URI:给定
  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.

我读过到处该URL必须达到什么在应用程序的设置页中列出相匹配。我有

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


  • 应用程序域=本地主机

  • 画布URL = <一个href=\"http://localhost/Fb.201109Birthday/Birthday.aspx\">http://localhost/Fb.201109Birthday/Birthday.aspx?

  • 安全画布URL = <一个href=\"http://localhost/Fb.201109Birthday/Birthday.aspx\">http://localhost/Fb.201109Birthday/Birthday.aspx?

  • App Domain = localhost
  • Canvas Url = http://localhost/Fb.201109Birthday/Birthday.aspx?
  • Secure Canvas Url = http://localhost/Fb.201109Birthday/Birthday.aspx?

我也(用local.facebook-apps.com改为localhost的无处不在上面)试图local.facebook-apps.com与主机文件条目指向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.

推荐答案

从画布网址中删除Birthday.aspx。

Remove the Birthday.aspx from the Canvas URLs.

这篇关于API错误code:191的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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