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.
Related
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.
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
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
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'.
When I authenticate the user, after authentication it does not redirect the next parameter. Instead it redirect the user to the "Canvas Callback URL". If I dont give the convas callback url. then it gives the error
An error occurred with experiement. Please try again later.
API Error Code: 100
API Error Description: Invalid parameter
Error Message: next is not owned by the application.
on the other hand if the user cannot allow my app then it redirect the next parameter.
My url for authentication is:
https://login.facebook.com/login.php?api_key=**KEY**&v=1.0&popup=1&next=**NEXT**&
next_cancel=**NEXT_CANCEL**&skipcookie=1
I try to this on localhost.
in any one have idea about this?
Try using this url instead to get permissions:
$facebook->redirect('https://graph.facebook.com/oauth/authorize?
client_id=[YOUR APP ID]&
redirect_uri=[YOUR APP URL]&
scope=publish_stream, offline_access');
Replace [YOUR APP ID] with application id that you can see from application settings where you created the site in Facebook Developers section. Also replace the [YOUR APP URL] with your app url.
And $facebook variables is the one you get by initiating the facebook client that is:
$facebook = new Facebook($appapikey, $appsecret);
Yes it always redirects to canvas url instead of app url. You just need to create your own server side redirect that would redirect user back to app url.
You can separate regular app calls from the one after authorization that requires manual redirect by looking at request parameters. After authorization you would get some unique params like auth_token that are not present in a regular request. If those params are present - it means that it is authorization redirect and you need to send user back to app url.