Facebook Canvas: Redirect_uri Is Not Owned By The Application
I am trying to integrate facebook canvas on my web application that is currently running on localhost:8080 upon running the site it gave me this error. API Error Code: 191 API Erro
Solution 1:
The URL you need to place in "canvas url" is probably localhost:8080 (the app url is determined by "name space", and will always be http://apps.facebook.com/namespace (this has to be unique for your app.)
You need to specify a redirect URI for http://developers.facebook.com/docs/reference/dialogs/feed/
<script>FB.init({appId: "YOUR_APP_ID", status: true, cookie: true});
functionpostToFeed() {
// calling the API ...var obj = {
method: 'feed',
redirect_uri: 'https://apps.facebook.com/mytestapp/',
link: 'https://apps.facebook.com/mytestapp/',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with users.'
};
functioncallback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
</script>
Post a Comment for "Facebook Canvas: Redirect_uri Is Not Owned By The Application"