Topic-icon Changed Facebook password. Can't get JFBConnect working again.

Active Subscriptions:

None
I recently changed my Facebook password and can not get my JFBConnect to work again. Logging in redirects me to mydomain.com/#_=_ and trying to login again after that puts me into a redirect loop until my browser times out.

Running the error check in auto tune gives the following error:

Test: JFBCSystem plugin is enabled
Fail: Not Detected! Please enable in the Site Config area of Autotune or in the Joomla plugin manager.

The System plugin is definitely enabled.
The topic has been locked.
Support Specialist
We haven't heard of that issue before and I don't have a clue why that would be happening. JFBConnect is built to accept a new authorization token, which is what happens when you change your password. I just tried changing my FB password and re-authenticating on this site and it happened without issue.

Can you try from a different browser or even check if other Facebook accounts are authenticating? It could be a more underlying issue with Facebook logins in general that is a problem, and not just the password change.

Let us know how other tests go and we can try to investigate further if you don't make any headway.

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

None
I've tried in Chrome, Firefox, and Safari. All three go into a loop when I try to use the Facebook login. It just bounces between Facebook and my site until the browser gives a loop error.

The top of the settings page for the Facebook channel shows this error:
Facebook API Error: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons.
The topic has been locked.
Support Specialist
I just went to your swfc...com page and did the following:
* Registered with a Facebook account and activated via email
* Logged out of your site
* Went to Facebook and updated my password
* Logged out of Facebook
* Went to your site and logged in with Facebook
* I was prompted for my email/password, which I entered the new password
* After that, I was successfully logged into your site with the account created previously.

Is that the same site and general flow you've gone through?

The only thing I can suggest now is trying to delete the user mapping connection in the JFBConnect -> Usermap area. That should delete the previous token stored for your user. Then, next time you login, you should be asked if you want to connect to an existing account, or the connection may happen automatically if you have the "Automatically link users by email" if your FB email is the same as your Joomla account.

After that, you may need to double check that your Channel is setup correctly still and may need to delete / re-configure that as well.

I hope that helps,
Alex
The topic has been locked.
Support Specialist
I think we've just been able to recreate this on one site. The issue looks to be how we're trying to get the permissions for a Channel that's been setup, but the authorization token has changed. We're looking into how to fix it going forward. To resolve for now though, delete your Facebook Channel and you should be able to re-authenticate on the front-end. Then, recreate the channel.

Let us know if that works for you or not. We'll keep you posted on what we find. It's good that it only seems to affect users with a channel configured, which are usually only admin accounts on the site. Therefore, it's not an issue that would affect all users on your site, since that's a scenario we've tested many times.

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

None
I deleted the channel and re-authenticated. It won't let me log in. Gives the following messages:

Error
Facebook API Error: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons.

Message
We were unable to retrieve your Facebook account information. Please try again.

I attempted to make a new user account with a different Facebook account and start a new channel using that. It allowed me to log in fine. Once I added the channel and attempted to authorize it to manage my page it went into a loop again.
The topic has been locked.
Support Specialist
Ok.. we have a quick code-fix that should get you going. We need to do more investigation to make sure this won't break anything unexpectedly, but it seems to be working properly from initial testing.

To implement, please edit the /components/com_jfbconnect/libraries/provider/facebook.php file. Around line 171, you'll see:
$params['access_token'] = JFBCFactory::usermap()->getUserAccessToken($jid, 'facebook');
Change that to:
$params['access_token'] = $this->client->getToken();

Let us know how that goes and thanks for your patience!
Alex
The topic has been locked.
Active Subscriptions:

None
That seems to have worked. Thanks so much!
The topic has been locked.
Support Specialist
Glad to hear that seems to be working for you. The issue was obvious once we were able to recreate it. It was just a little obscure, so not something we had seen before.

Thanks for your patience, and let us know if you run into or need anything else!

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/extensi...l-display/jfbconnect

Alex
The topic has been locked.