只是想将提要发布到我的墙上,但收到错误消息
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.
这是我的代码
var app_url = http://xxx.xxx.xxx.xxx;
var fb_app_id = xxxxxxxxxx;
// When init
FB.init({
appId: fb_app_id,
status: true,
cookie: true,
xfbml: true,
frictionlessRequests: true,
useCachedDialogs: true,
oauth: true
});
// When posting
FB.ui({
method : 'feed',
link : 'http://apps.facebook.com/' + fb_app_id,
redirect_uri : app_url + 'facebook/index.php',
picture : app_url + 'icon/fb_feed_lvup.png',
name : 'My Game',
caption : 'Player level up to ' + level + '!!',
description : 'Congratulation :D'
},
function callback(response) {
// Callback after feed posted...
console.log('publishStory UI response: ', response);
});
我不知道这与我未设置“应用程序域”的应用程序设置有关吗?
我无法设置它,因为主机没有域名我只是使用 IP 地址来设置 URL 设置。