请帮帮我!我正在Facebook上为一个竞赛创建一个facebook标签/应用程序,竞赛的一部分是让用户可以选择在他们的墙上分享竞赛。这是我收到的错误-
接口错误码: 191接口错误描述:指定的URL不属于应用程序错误信息: redirect_uri不属于应用程序。
这是我的facebook验证码:
<div id='fb-root'></div>
<script>
FB.init( {
appId : 219691398094935,
status : true,
cookie : true,
xfbml : true
}
);
window.fbAsyncInit = function() {
FB.Canvas.setAutoResize();
}
</script>
<script src='http://connect.facebook.net/en_US/all.js'></script>这是我的FB.ui代码:
<script>
function showStreamPublish() {
FB.ui(
{
method: 'feed',
name: 'I signed up to win an iPad 2 from Upillar.com',
link: 'http://www.facebook.com/pages/udev/121216321302968?sk=app_219691398094935',
picture: 'http://static.upillar.com/fb/images/logo.png',
description: 'I entered the iPad 2 Sweepstakes from Upillar.com which only requires you to create a listing to enter! Enter the contest now by by clicking this link.',
app_id: '219691398094935'
},
function(response) {
if (response && response.post_id) {
$('#main-screen').css('display','none');
$('#step2').css('display','block');
}else{
$('#main-screen').css('display','none');
$('#step2').css('display','block');
}
});}
</script>以下是我的应用程序中的信息:
站点/应用程序域: upillar.com
网站网址:http://fb.upillar.com/contest.php
页面选项卡URL:http://fb.upillar.com/contest.php
安全选项卡网址:https://fb.upillar.com/contest.php
请告诉我我错过了什么!非常感谢。
发布于 2012-06-11 16:47:34
得到了同样的问题-解决方案很简单,但Facebook Dev DOCS甚至没有提到。看看这个:
FB.ui(
{
method: 'feed',
redirect_uri: 'http://www.yourdomain.com', // that caused the problem
message: 'getting educated about Facebook Connect',
name: 'Connect',
caption: 'The Facebook Connect JavaScript SDK',
description: (
'A small JavaScript library that allows you to harness ' +
'the power of Facebook, bringing the user\'s identity, ' +
'social graph and distribution power to your site.'
),
link: 'http://www.yourdomain.com',
picture: 'http://www.yourdomain.com/f8.jpg',
actions: [{
name: 'yourdomain',
link: 'http://www.yourdomain.com'
}],
user_message_prompt: 'Share your thoughts about RELL'
},
function (response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);发布于 2011-10-08 12:39:53
站点URL不应是文件,请尝试将其设置为仅您的域,而不是contest.php
如果这不起作用,请将画布URL设置为您的域,并在末尾加上"/“。
发布于 2012-01-23 16:23:24
很抱歉撞到了一个老帖子,首先我应该说我是facebook开发的新手,但我也遇到了同样的问题,基本上facebook似乎做了一些相当巧妙的检测,当你登陆你的页面时,什么是符合条件的重定向。
例如,我正在检测它是否是一个新用户,然后显示一个colorbox,它的onclick事件重定向到一个新用户创建窗体。这给了我错误191 redirect_uri not owned。似乎是因为javascript在<HEAD>元素中,所以它被限定为重定向。
我只是简单地更改了登录过程,以完全呈现主页,并显示一个普通的div,告诉他们单击此处登录。
https://stackoverflow.com/questions/7693267
复制相似问题