Topic-icon Invalid redirect_uri. This value must match a URL registered w/API key

Active Subscriptions:

None
wondering whats wrong, in that im using the same urls that im using with FB....
The topic has been locked.
Active Subscriptions:

None
The first post "Invalid redirect_uri. This value must match a URL registered w/API key" is error message with Linkedin .

When i try to login w/ facebook, i get a (facebook.com/dialogue.....some more text )window that pops up for about 1/2 second, then disapears and unable to log in with facebook.
The topic has been locked.
Support Specialist
For the LinkedIn issue, please read through our LinkedIn OAuth2 Redirect URI blog post. You also should have received an email from us directing you to that post. Basically, LinkedIn made a minor change to their Application Creation process that needs to be updated for all user's apps. There's no change in JFBConnect necessary.

For Facebook, when I try to login, the popup shows the following message:

App Not Setup: The developers of this app have not set up this app properly for Facebook Login.

Please go through our Facebook Application setup guide again. Specifically, step 8, for making your application 'live'. That's likely the cause, but again, check through all the steps just to make sure you didn't miss something.

I hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
Alex- RE: LinkedIn solution... yep that worked thanks.. Did have linkedIn follow-up... after i got it to work, took literally 64 seconds for the "Waiting for BrushForGood.org" in bottom left corner before the site actually logged me in.. any clues as to why over a min to perform this login? i initialy got anxious and after about 20 sec pressed it again, and got an email already exists error so went into user manager and deleted the related linkedin related entry and started over..

Site is BrushForGood.org if you want to check how long it takes you...

Will work through the Facebook item next and comment in separate post.
thanks,
Steve
The topic has been locked.
Active Subscriptions:

None
Alex, RE Facebook..
so i started typing you an email (which i sent) w/ screen shots of the FB app's setting and other important pages.. b/c the FB connect was still not working after i followed the instructions (which you were right it was not enabled pubic access)- but still did not work after setting to YES...

then playing with the FB settings in the JFBConnect module, somehow it started working..

However: im still having a 70+ second wait between pressing the button and haiving the ;Hello Steve login successful message..
The topic has been locked.
Support Specialist
A super-long login time is *almost always* caused by an invalid server configuration. Specifically, its when your server reports that it supports IPv6, but really has some issues when using it. In that case, JFBConnect will try to use IPv6 to communicate.. will wait for the timeout (probably 60s, from your description above) and then fallback to IPv4, which goes fast.

To fix, there's a few different things you'd need to change. Let's start with Facebook though to see if that speeds things up. Ca you edit the /administrator/components/com_jfbconnect/assets/facebook-api/base_facebook.php file. Around line 177, you'll see:
public static $CURL_OPTS = array( 
        CURLOPT_CONNECTTIMEOUT => 10, 
        CURLOPT_RETURNTRANSFER => true, 
        CURLOPT_TIMEOUT => 60, 
        CURLOPT_USERAGENT => 'facebook-php-3.2', 
    );
Update that to:
public static $CURL_OPTS = array( 
        CURLOPT_CONNECTTIMEOUT => 10, 
        CURLOPT_RETURNTRANSFER => true, 
        CURLOPT_TIMEOUT => 60, 
        CURLOPT_USERAGENT => 'facebook-php-3.2', 
        CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4
    );
All you're doing is adding that last CURLOPT_IPRESOLVE line.

Test that and let me know if that gets you going. There's only one more spot (I think) that you'd need to make a similar change that should work for all the other providers.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,
Again- that fixed worked.. FB logins now take about 6 seconds vs 70+ seconds.

Ready for the other fix locations (thanks.)
The topic has been locked.
Support Specialist
This is a change you'd need to make in a Joomla core file. Usually not recommended, but there's no way to make this setting inside JFBConnect. To implement the same 'bypass' of IPv6 for the other providers, please edit the /libraries/joomla/http/transport/curl.php file. Around line 164, you'll see:
// Set the cURL options.
		curl_setopt_array($ch, $options);
Update that too:
// Set the cURL options.
                $options[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V4;
		curl_setopt_array($ch, $options);
Test, as usual, and let me know how that goes. Best of luck!

Thanks,
Alex
The topic has been locked.