[英]Error Message: redirect_uri URL is not properly formatted error
大約 2 小時前,我的應用程序中開始出現以下錯誤。
所有三個應用程序都使用共享 SSL 托管在同一台服務器上。
<application name>
發生錯誤。 請稍后再試。API 錯誤代碼:100 API 錯誤說明:無效參數錯誤信息:redirect_uri URL 格式不正確
關於什么會導致我的應用程序發生這種突然變化的任何想法?
當我嘗試使用函數sendRequestToManyRecipients()
或發布到用戶牆時會彈出錯誤。
用於生成彈出窗口的代碼
<script>
FB.init({
appId : '<?php echo $fbconfig['appid']?>',
status : true,
cookie : true,
oauth: false
});
function sendRequestToManyRecipients() {
FB.ui({method: 'apprequests',
message: ('I just entered the Payntwagon Audo Targa Terminator Competition! Payntwagon Audio is giving away a brand new Targa Terminator 4 channel amplifier! Enter today to win!'), href: 'http://www.facebook.com/payntwagon?sk=app_279329708764904',
}, requestCallback);
}
function requestCallback(response)
{
if(response && response.request) {
loadPopup();
} else {
}
}
</script>
You can do the following :
1) encode the url before sending, ie both fb url as well as return url
u can use javascript functions or php functions for encoding url
//encodeURIComponent(url); // in javascript u can do this
2) Also check that the return url specified is valid
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.