Topic-icon API Error Code: 191

Active Subscriptions:

None
11 years 5 months ago #27916 by seansin
API Error Code: 191 was created by seansin
Hi Alex,

I am getting this error in the front-end when trying to login using JFBConnect but not always and not on the home page -

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 permitted by the application configuration.

The weird thing is that If you login on the home page of my site, it always works fine....but if you login from any of the article pages (jreviews) it 'intermittently' produces this error....which means it will sometimes randomly work and more often randomly it will produce this error.

I have double checked my URLs in the FB app and in the JFBC config and they seem to be OK.

I am pretty confused as to why this could be happening.....more so as to why not consistently....Maybe i am missing something in the config....

Can you pls advise whether I could have done something wrong in the setup ?

The home page URL - suggestadoctor.in
An article page URL - suggestadoctor.in/homeopathy30/516-drbagwan-mohsin

Thanks,

Sean.
The topic has been locked.
Support Specialist
11 years 4 months ago #27931 by alzander
Replied by alzander on topic API Error Code: 191
Sean,
My best guess is that you have other Facebook extensions or addons installed on your site. If other features are re-loading Facebook's Javascript library, it will cause you this type of grief as they can initialize it improperly. Then, when you try to login, Facebook sees the 'basic' initialization that doesn't allow login functionality and other features.

I'd recommend disabling the Share and Like buttons at the bottom of your home page and any other non-JFBConnect Facebook widgets, temporarily, and see if that helps fix the problem. If so, you can replace those widgets with the ones in our library or figure out how to tell those other extensions *not* to include the Facebook Javascript library all.js

Hope that helps get you going,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #27939 by seansin
Replied by seansin on topic API Error Code: 191
Indeed....

Disabling ALL facebook related extensions apart from JFBC seems to have solved all problems with JFBC.

Seems a bit limiting to be forced to use Only JFBC extensions once you install it but I guess It's fine as long as I get to do what I want to.....

BTW Alex, I also had to disable a Facebook Like Box (the 'Find us on facebook' kind) while trying to troubleshoot this.....is there a FB likebox included in JFBC that i can use in its place ?

Thanks,

Sean.
The topic has been locked.
Support Specialist
11 years 4 months ago #27941 by alzander
Replied by alzander on topic API Error Code: 191
The Like Box in JFBConnect is called the JFBCFan module. You can also use the {JFBCFan} tag if you don't want to use it in just a module position.

As for disabling others, that's honestly not always necessary. Many other extensions have the option to include the Facebook Javascript Library. If they have that option (or you're able to modify their code to remove that inclusion) you should be fine. Unfortunately, 2 loads of the Facebook library *can* cause problems. When it does, it's usually intermittent, hard to track down, and confusing in general. I wish there was some sort of compatibility mode Facebook offered, but unfortunately, they don't.

Hope that all helps explain, and best of luck!
Alex
The topic has been locked.