Facebook Connect error code 191 - facebook

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.

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 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"

OAuthException 2500 (Unknown path components) when trying to register Achievement in Facebook

I am trying to register a Facebook open graph achievement for an app. I obtain the app access token and post the following request using open graph API explorer:
https://graph.facebook.com/752901688356092/achievements&achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZTdleEZvOUE/brags/fb_achive_100_words.html&display_order=100&access_token=752901688356092|pPwn52AvX-Pkj2n8Tavopew5Rav
(note that app ID an access token above are not the real ones). However, I get the following response:
{
"error": {
"message": "Unknown path components: /achievements&achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZTdleEZvOUE/brags/fb_achive_100_words.html&display_order=100&access_token=752901688356092|pPwn52AvX-Pkj2n8Tavopew5Rav",
"type": "OAuthException",
"code": 2500
}
}
I have registered the app as a games type app and I have verified the achievement URL using open graph debugger (it shows the achievement and reports everything is fine). I also tried the above without the app-ID included in the access token. What could I be missing?
You have an error in the way your URL is composed. The first GET parameter is supposed to be separated from the base URL by a ?, not a &. Try the following :
https://graph.facebook.com/752901688356092/achievements?achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZTdleEZvOUE/brags/fb_achive_100_words.html&display_order=100&access_token=752901688356092%7CpPwn52AvX-Pkj2n8Tavopew5Rav
This throws another error, but that might also be caused by a missing AUTH token. Why don't you have a look at how they suggest you do it? You probably need to check the setup of the achievement.

Janrain error: Invalid redirect_uri: Given URL is not allowed by the Application configuration

I'm trying to setup Janrain Engage with my drupal website.
I have created a Janrain account
I have setup the providers (including Facebook)
I have installed and configured the module (Drupal 7)
I have have everything showing on the login page as would be expected
I have created a Facebook app
Everything seems to be fine but...
When I try to log in with facebook I get this error message:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
Can anyone please tell me what i'm doing wrong here :(
Thanks
C
I found the solution here:
https://support.janrain.com/entries/470621-how-to-resolve-a-facebook-settings-error

"message": "Invalid redirect_uri:"

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