June 27, 2014 - JFBConnect v6.1 Released! Instagram, Github, VK integration; new Social Stream to show your stream from Facebook, Twitter and LinkedIn; Lots more. See The full changelog

API Error Code: 191

API Error Code: 191

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 - http://suggestadoctor.in
An article page URL - http://suggestadoctor.in/homeopathy30/5 … wan-mohsin

Thanks,

Sean.

seansin
useravatar
Offline
10 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19155 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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.

seansin
useravatar
Offline
10 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19155 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
7949
Total Polls:
0
Total Posts:
34766
Average Posts Per Hour:
1.2
User Info
 
Total Users:
23248
Newest User:
rgfuller
Members Online:
9
Guests Online:
852

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program