Topic-icon How do existing JomSocial users connect their FB accounts?

Support Specialist
.htaccess will definitely need to be disabled when you remove the app from Facebook. If Facebook can't hit the site, they can't notify JFBConnect that the user removed the app.

Can you go into Autotune -> FB App and verify that the De-Authorize Callback URL is set for your correct domain and path?

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

None
Yes De-Authorize Callback URL looks correct to me. It's http://www.(this is all correct)/index.php?option=com_jfbconnect&task=deauthorizeUser
The topic has been locked.
Active Subscriptions:

None
Any more help? Pretty please?
The topic has been locked.
Support Specialist
I apologize for not getting back sooner. We did some preliminary testing and the De-Authorize Callback URL does still seem to function properly. We're doing more testing though as Facebook looks to have made some minor changes to how it works, so we want to test to make sure we follow all cases.

I'm hoping to get more of an answer to you by this weekend once we're sure it works. If so, we can investigate why it's not on your site. If we find a bug, we'll pass that along as well.

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

None
Thanks for the update!
The topic has been locked.
Support Specialist
Thank you so much for your patience. I really am sorry for the delays in investigating this and getting you a solution, but there were a few issues to test and get going. Ultimately, the fix is very easy. There was a bug introduced in JFBConnect v7 that we weren't aware of that was preventing the Facebook De-Authorization callback from working. That means that when the user removed your app from their profile, JFBConnect wasn't made aware of it.

There are 2 code changes required to fix things up how you want so that the De-Authorization is properly recognized and after that, the user will see the Facebook button as a reconnection option. The updates are:
/components/com_jfbconnect/controller.php at line 34, you'll see:
$fbClient = JFBCFactory::provider('facebook')->getFbClient();
Update that to:
$fbClient = JFBCFactory::provider('facebook')->client;

/administrator/components/com_jfbconnect/models/usermap.php at line 119, you'll see:
->where('j_user_id = ' . $this->_db->q($joomlaId));
Remove the semi-colon at the end of that line and add the new line, like shown below:
->where('j_user_id = ' . $this->_db->q($joomlaId))
            ->where('authorized = 1');
Please test and let us know how that goes. This change will be in the v7.0.1 release, which will have a few other minor bug fixes. We'd love to have your feedback beforehand though.

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

None
It works, wahoo!! Thank you very much for your attention!
The topic has been locked.
Active Subscriptions:

None
Well, except now when I connect it and make a post, the post does not go to Facebook. I'm pretty sure it worked before...now what? :| I did try Autotune again.
The topic has been locked.
Support Specialist
Awesome! I'm glad to hear that worked for you. As noted, this change will be in the 7.0.1 release, due out later this week, so you shouldn't have this problem again.

Well, except now when I connect it and make a post, the post does not go to Facebook. I'm pretty sure it worked before...now what? current/neutral I did try Autotune again.

If you removed the Application from Facebook, that revoked all permissions you previously granted. You'll need to logout and then log back in using Facebook (not doing a reconnect when already logged in) so that Facebook can request the new permission again for your account to be able to post.

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

None
We don't allow users to log in with Facebook, we want them to only log in using the username and password that we provide them. Then they can connect their account to Facebook so they can have their posts pushed from JomSocial to Facebook, but that's the only Facebook functionality that we allow.

So in our case, if a user connects their Facebook account, then goes to Facebook and revokes the permissions, there is no way they can later reconnect to that specific Facebook account?
The topic has been locked.