2011-08-22 115 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是動態構建的,它需要是靜態的。