[英]API Error Code: 191 for Share Dialog in facebook UI
API錯誤代碼:facebook UI中“共享”對話框的191
我一直在嘗試使FB.ui正常工作。 不幸的是,我不斷收到錯誤消息:
An error occurred. Please try again later.
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
如果我在https://developers.facebook.com/中轉到我的App基本信息
我沒看到任何問題,一切看起來都很好:
App ID: 471513259597047
Display Name: Calculator
Site URL: http://www.calculator.com
我填滿了所有必需的內容,但仍然出現191錯誤。 順便說一下,我正在localhost中對此進行測試。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>My Feed Dialog Page</title>
</head>
<body>
<div id='fb-root'></div>
<script src='http://connect.facebook.net/en_US/all.js'></script>
<p><a onclick='postToFeed(); return false;'>Post to Feed</a></p>
<p id='msg'></p>
<script>
FB.init({appId: "471513259597047", status: true, cookie: true});
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
redirect_uri: 'http://www.calculator.com',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with people.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
</script>
</body>
</html>
我認為,您在developers.facebook.com上創建facebook應用時指定的URL與代碼“交叉檢查”中指定的URL之間存在一些不匹配。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.