"message": "Invalid redirect_uri:" - facebook

So a few months ago my facebook app worked, and now I get a:
{ "error": { "type": "OAuthException", "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration." }
So I googled about that, and read that the cause might be that I didn't specify a site domain in the app settings. So I did that, but Facebook told me that this won't work unless I also specified a website or mobile device adress. But up to now I had this just set as App and neither Website nor mobile thingy. So now I also have to check "website" in addition to "application?" This is confusing.
Anyway, so I thought "whatever" and set it also as website in the app settings. But I still get the same error.
I read something about a channel file? So I have to create one of those or something?
I'm lost and thankful for any advice.

This error is almost always when you're trying to redirect the user to a URL other than your app or website, check that you're actually redirecting them to the correct place

Related

Facebook app login error - Can't Load URL: The domain of this URL isn't included in the app's domains

We're getting the following error when a user tries to use one of our facebook apps. This is a long established app that was working normally until recently. I just became aware of the problem today. I confirmed the correct domain is in place in the Domains field in app settings. You can see the error here by clicking on one of the image map buttons https://www.facebook.com/LesherCenter/app/602128116556236/
Anyone have any ideas what the problem is?
"error": {
"message": "Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.",
"type": "OAuthException",
"code": 191,
"fbtrace_id": "CwaEPJ4+X8p"
}
I found the solution need to add "https://apps.facebook.com/" in Valid OAuth redirect URIs under https://developers.facebook.com/apps/your-app-id/fb-login/settings/. Issue came up as we were preparing for the forced strict mode coming next month. Even though it is not yet enabled its blocking that domain

Facebook Connect error code 191

I've looked and tried so many things but unfortunately I have been unsuccessful in fixing the Facebook Connect on my forum (IP.Board 3.4). It worked before but for some unknown reason stopped working. Now I get an error (code 191)... I'm pretty sure I've got everything set up properly. I was hoping the Stack Overflow community could help me out. Here is the full error message being displayed when someone tries to register using FB:
{
"error": {
"message": "Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.",
"type": "OAuthException",
"code": 191,
"fbtrace_id": "G9FSrFXlu0Y"
}
}
Screen 1
Screen 2
Thank you for your time and help!
For login via the website platform, you need to add an according Valid OAuth Redirect URI. (Because in that case, the address will not be apps.facebook.com/something)
The Valid OAuth Redirect URIs field must contain the exact value of the redirect_uri parameter in your login dialog call.

Facebook Api Integration for Social Lead Freak

I'm total newbie in fb marketing, first time tried to create fb app to integrate it in social lead freak and social interest freak. I followed this tutorial but I got the error code:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration",
"type": "OAuthException",
"code": 191
}
}
Why is this going wrong?
This problem is related to your App configuration inside FB platform - as mentioned in other questions:
Given URL is not allowed by the Application configuration Facebook application error
Try to check at Settings > Advanced. At Valid OAuth redirect URIs, make sure you have a correct domain or let it empty (not recommended)
Facebook login "given URL not allowed by application configuration"
Your settings must be incorrect.
Go to http://www.facebook.com/developers/ and edit the application you're working on.
On the "website" tab, look for "Site URL". This should be set to your website's URL "http://yoursite.com/"
Note that if you're using subdomains, you'll also need to update "Site Domain" to be "yoursite.com"

Error with Twitter link

Yesterday I started a new app on Facebook. Today I got the message that when people copy the link to Twitter they get an error. This is what you get:
{
"error": {
"message": "Unknown path components: /your_namespace:your_action",
"type": "OAuthException",
"code": 2500
}
}
What does this mean? What could be the problem?
Are you actually sending the POST action link to Twitter? Why?
I think you misunderstood how Open Graph works. Basically, you should be the one publishing actions when users take an action using your service. You can use a server-side or a client-side language to POST request (when you click a link, your browser actually makes a GET request, not a POST) to https://graph.facebook.com/me/namespace:action?access_token=ACCESS_TOKEN&OBJECT_PATH=OBJECT_URL
Note that you need to create an app, use it to authenticate users to get the access token and also set your custom actions / objects. These will need to be approved before you can actually use them.
You should start by taking a look at the sample apps to see how they work: https://developers.facebook.com/docs/samples/

login with facebook connect

I'm trying to add facebook oauth to my website. The "login with facebook" button hits the following URL
https://graph.facebook.com/oauth/authorize?client_id=292861684087978&redirect_uri=http://localhost:8080/foobar/register/facebookLoginHandler&scope=user_about_me,email
When the button is clicked I get the error message:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not permitted by the application configuration.",
"type": "OAuthException"
}
}
So it seems like facebook doesn't like my redirect_uri. I've registered my app with the following settings on facebook:
App Domain: foobar.ie
Site URL: http://www.foobar.ie
Obviously while I'm testing locally, the redirect_uri doesn't correspond to my registered domain, but my understanding is that facebook always allows localhost:8080 for the purpose of testing?
I havent managed to get it working with localhost URLS. What I do is add an entry in my hosts file and then give facebook the mapped url.
You wont be able to use the URL Debugger for testing Open Graph stuff, but you'll be able to view the canvas of your app - apps.facebook.com/your_app for testing purposes as the canvas apps are run in an iFrame and calls to it originate from the client machine therefore going through the hosts file. You'll have to update every (tester's) computer's hosts file for them to be able to view your locally developed app.