Facebook API Error Code: 191 on facebook application - facebook

I'm developing a Facebook app. When I attempt to get an access token, I get the following message:
An error occurred with test. Please try again later.
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
https://apps.facebook.com/fb_invite_app/----->URL
I've configured the
Site URL https://safe-gorge-5005.herokuapp.com/
Canvas URL same as above
Canvas Page URL
and my php code has define("FACEBOOK_CANVAS_URL", 'URL');
What is causing this error, and how do I fix it?

Did you give App Domains in app settings page , this may be one of the reason for getting this error

Related

Facebook share dialog - Invalid URL Error

I have created app in Facebook developer account, I have set the site URL: http://www.xxxxxxx.com
If I open the page from www.xxxxxxx.com, then it works perfectly.
If I open the page from xxxxxxx.com, then it produces the following error:
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
How should I specify my URL in my app to avoid this error?
You can set URLs in the settings of your app on facebook. Add xxxxxxx.com to the form field to make it work (additionally to the www.xxxxxxx.com).
You can only use URLs that are owned / set up, correctly.

Getting OAuth error type when posting opengraph or wallpost

We have a sandbox app for development, but since this morning, our sandbox app are unable to post any wallpost or opengraph to feeds page or timeline. We are getting an error message like this for posting wallpost
Object {error: Object}
error: Object
code: 368
message: "Warning: This Message Contains Blocked Content: Some content in this message has been reported as abusive by Facebook users."
type: "OAuthException"
__proto__: Object
__proto__: Object
And we are getting error for posting opengraph
"An unexpected error has occurred. Please retry your request later."
The path we use to load the object is eg. fb-api.ourdomain.com/fbapi/{ourappname}/opengraph/{action_object}/gift_id/{gift_id}, and we put this domain name to the debugger at https://developers.facebook.com/tools/debug/, we got an error message
Error Parsing URL: Error parsing input URL, no data was scraped.
but once we changed to fb-test.ourdomain.com/fbapi/{ourappname}/opengraph/{action_object}/gift_id/{gift_id}
the debugger can return the object information.
So our question is, are we not allowed to use fb related name as our sub-domain name (but we cannot see that in the platform policy page: https://developers.facebook.com/policy/)? Or our sandbox app and object link got blocked because we created too many testing wallpost?
If it is the later case, why we cannot use the same object URL in other app? It looks like the object URL got blocked.
Thanks!

pagetab dialog getting error

Getting Error when i try to add a new pagetab.
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
inserted for
YOUR_APP_ID = id of app
YOUR_URL=www.xxxxxxxxx
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.
Any hints would be very helpful.
Wondering, that i did this some weeks before without trouble.
Thanx
The value you're using for YOUR_URL must be a URL on one of the domains specified in the app domains value in the app settings and/or derived from the page tab URL you're using in the 'Page Tab' settings

"redirect_uri is not owned by the application" when adding Facebook app

I'm trying to add a Facebook tab to a page using the url:
https://www.facebook.com/dialog/pagetab?app_id=256000XXXXXXX&display=popup&next=https://www.facebook.com/mypage
But I'm getting the error:
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.
In my settings All the URLs are correct, including the App Domains.
Facebook must have changed something because using the url 'https://www.facebook.com/mypage' no longer works. I instead needed to use 'https://www.facebook.com'.

Facebook share link error

I created a facebook app and tried it to send invite a friend or share something on my wall, but I'm getting an error.
The same link is working with another app:
my app id:313714785358239
my link: https://www.facebook.com/dialog/apprequests?app_id=313714785358239&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response
and another link(working):
https://www.facebook.com/dialog/apprequests?app_id=123050457758183&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response
my error:
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.
Make sure you correctly configure domain and site URL (callback URL) to match the redirect_uri you're specifying as a parameter at the app request dialog.
You can configure these settings on https://developers.facebook.com/apps/313714785358239/summary
The App ID 123050457758183 has http://www.example.com as the callback URL and that's why it works.