2011-08-22 69 views
2

我在Internet Explorer中看到这个错误(而不是其他浏览器):入门Facebook的API错误代码191,但只在Internet Explorer

API错误代码:191
API错误描述:指定的URL不属于应用程序
错误消息:redirect_uri不是绝对URI。检查RFC 3986.

我的画布URL是http://nintriva.com/_others/groupbuy/index.php?r=groupbuy/facebook/authenticate,我的应用安装在页面http://www.facebook.com/nintriva?sk=app_241476069209769上。

我提供了网站网址http://www.nintriva.com/_others/groupbuy/index.php?r=groupbuy/facebook/authenticate和网站域www.nintriva.com

我用这个代码的用户授予权限后重定向到Facebook粉丝页面:

$this->auth_url = "http://www.facebook.com/dialog/oauth?client_id=".Yii::app()->controller->module->app_id."&redirect_uri=".urlencode($session['page_link']."?sk=app_".Yii::app()->controller->module->app_id)."&scope=email,user_location"; 

其中page_link是用户的粉丝专页的链接,我从一个签名的请求得到。

+0

尝试从您的**网站域名**中删除'www.'',因此它看起来像:'nintriva.com' – ifaour

+0

您是否还有一个DNS或301重定向www流量到非www或其他方式?如果不是那么'http://www.nintriva.com/_others/...'和'http://nintriva.com/_others/....'将被区别对待我想。 – ifaour

+0

我试过没有www.but但没有使用 – user869379

回答

0

也许你得到了这个错误,因为URL是动态构建的,它需要是静态的。