I had this problem initially when I started the Facebook integration of our site. After doing some searching, found the solution and fixed it.
Now, a few months later, it has just stopped working. Nothing was changed in either the javascript code or the app settings on the Facebook developers site. I once again set about searching, and found the same answers as before: Site URL must match redirect_uri etc.
I currently have the App Domain: "domain.com"
And the Site URL: "http://www.domain.com"
Error given:
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.
I'm at a loss as to what has happened. Has Facebook changed their API? (I did check their documentation, and it's still the same).
Any help would be greatly appreciated. Javascript code below:
var publish = {
method: 'feed',
redirect_uri: 'http://www.domain.com',
link: 'http://www.domain.com',
picture: 'http://pathtoimage/logo.png',
name: 'Name',
caption: 'Title',
description: 'Description, blah blah'
};
function fbcallback(response) {
// do stuff here
}
FB.ui(publish, fbcallback);
Thanks
EDIT:
I checked the timestamp and the JS file hasn't been touched since the 16th of March, neither has the App Settings on Facebook, and my colleague tested this just a week ago (was still working then)
` etc). No reason to "fake" the URL with `http` either. – timss Apr 20 '13 at 00:31