strange error with Facebook Feed dialog

facebook

Solution

the url format works fine with my app

https://www.facebook.com/dialog/feed?app_id=135669679827333&link=https://anotherfeed.com&name=testing&caption=Just%20testing&description=the%20test&redirect_uri=http://anotherfeed.com

check to make sure your app id is correct and that your redirecting to the domain that is set up in your app settings.

Problem

We followed the Facebook example code, shown here -- this works in our app -- if you click the anchor 'a' link, its onclick handler opens a new window and the facebook feed dialog appears: ``` <a class="fbShareToWall" onClick='window.open("https://www.facebook.com/dialog/feed?app_id=123050457758177 &link=https://developers.facebook.com/docs/reference/dialogs/ &picture=http://fbrell.com/f8.jpg &name=Facebook%20Dialogs&caption=Reference%20Documentation &description=Using%20Dialogs%20to%20interact%20with%20users. &redirect_uri=http://www.example.com/response");'>Share on Facebook</a> ``` The above code works fine and displays the Facebook sample of the Feed dialog. Here is our code - we get the error message: "An error occurred with oursite.com. 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. NOTE: this is a beta site and we're running it on a staging server whose domain name is NOT the same as the domain name that "OUR_APP_ID" below is associated with: ``` <a class="fbShareToWall" onClick='window.open("https://www.facebook.com/dialog/feed?app_id="OUR_APP_ID" &link=https://www.oursite.com&name=Please%20work &caption=Just%20work &description=Comeon%20work &redirect_uri=http://www.oursite.com");'>Share on Facebook</a> ``` (note: our code has the numerical FB app_id, not "OUR_APP_ID") "OUR_APP_ID" is 'connected' to our production server's domain name and we're kinda wondering if that's the problem. EDIT: "we're kinda wondering if that's the problem" because the code above is on our staging website www.foo.com -- and our code above uses an app_Id that we connected to our production domain name 'www.oursite.com'. We wonder if Facebook -- upon receiving the above request to display the Feed dialog -- is saying to itself "okay this website www.foo.com is trying to display a Feed dialog -- but the app_id is for www.oursite.com -- so we're going to pop up a 191 error" We tested that theory. We altered the sample FB feed dialog code at the top -- we changed some numbers in the sample code's app id. And we get an error message now with the formerly working sample Feed dialog code but it is a completely different error message. Any advice on this '191' redirect_uri error message?

Original source