i am using cakephp facebook plugin. when i click login. i get the following 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.
I am trying to work on the localhost.
Sounds like a registration problem. Make sure the site url is set correctly, people seem to having a similar issue in this thread.
Related
I am trying to add Linkedin authentication with ionic.io following the official tutorial. The tutorial doesn't mention the redirect_uri due to which I have left it as blank. But when I try to login using my Ionic app on android, an error occurs. What is the correct redirect_uri to use in ionic.io application. The linkedin error goes like this:
Invalid redirect_uri. The value must match a URL registered with the API key.
After running the app in debug mode, I finally figured out the redirect_url and its working fine. The redirect url is:
https://api.ionic.io/auth/integrations/linkedin
I have an application that I want to have Facebook Authentication setup on. The application is using a loose MVC framework and thus the handling for the Facebook Authentication (the redirect) needs to be done via a module. Since this is under development I'm working off a development URL, which is a sub domain.
I've created an app, put it in sandbox mode, and set the App domain to "example.com" and the Site URL to "http://dev-site.example.com". My login URL is generated via the current Facebook PhP API and the redirect_uri is /facebookauth/processResponse. I click the link and get....
An error occurred with FTR_Sandbox. 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.
I'm at a loss here, I've tried a lot of different settings (Add Domain including the sub domain, with training slashes, without training slashes) and I keep getting that error.
What am I doing wrong!?
If your app url is sub-domain.domain.com, Then add sub-domain.domain.com as your domain
When I try to access my Facebook app without being logged into Facebook, I'm getting an error. If I'm already logged into Facebook, I get directed to the application normally, but without being logged in
Using the example for server-side CSRF on this page, my site generates a "state" variable to store in the session and redirects the user to the following URL:
http://www.facebook.com/dialog/oauth?client_id=[APP_ID]&redirect_uri=[APP_URL]&state=[RANDOM_NUMBER]
All I'm getting by way of an error message is
Error
An error occurred. Please try later.
With no clear indication what's gone wrong, where, or why.
The app is running on a live server, with the domain name and path matching what's specified in the Facebook app control panel.
If your receiving the Error 'An error occurred. Please try later.' on the Facebook login page then i would suggest you to verify the value for the parameter 'redirect_uri'. the value supplied in the above url should match with the one set for the facebook app in the spp settings page.
Had faced a similar problem during my initial days. Hope this helps.
We have a Canvas Facebook App and for some time we get a strange error for some of the users that are trying to install (allow) our Facebook app. I mention this is happening only for some of the users and not for all! The error we are getting is "The remote server returned an error: (400) Bad Request." The graph API call we putted in a try catch block and this is what the logs says when I searched over them to see what went wrong. The graph API call is:
https://graph.facebook.com/oauth/access_token?client_id=XXX&redirect_uri=XXX&client_secret=XXX&code=code_received_from_facebook.
We received the code from Facebook and append it to the graph API call from above but it seems that for some users this is not working. Our redirect_uri parameters contains an URL to our Facebook App and contains also some parameters (example: http://apps.facebook.com/our_application_URL?cid=xxx&surveyid=xxx&messageid=xxx).
xxx = some values.
Did some of you confront with this kind of strange behavior? Working for some users but for other is not working? We are using the same code so nothing change between a successful installation and a unsuccessful installation.
Thank you for your help in advance!
Now that Facebook require SSL for applications your "redirect_uri" need to be https (i.e https://apps.facebook.com/myapp/), otherwhise you will get "Bad Request".
You probably got the error for only the users that had forced SSL but not the rest.
I'm having a problem with my Facebook application, I got an error like this.
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.
What are the best solutions for this error?
I assume you have the Website option active in your app settings.
Did you fill the site url there?
Thing is, if you own the site.com domain and specify it for your app, you will not be able to use a redirect url to othersite.com after login, or even domain.site.com. I think you need to specify if you are going to use subdomains.
Anyway, what sort of app are you trying to build? Is it a Canvas App? Does this error appear when you try to ask for permissions or login the user? In this case, just fill out the Site URL in your app settings page