× Joomla Facebook Connect support forum

Topic-icon jFBConnect and Jomsocial "My Status"

Support Specialist
12 years 9 months ago #11695 by alzander
For those of you with 2.0 of JomSocial, there's a quick modification you'll need to make to the plugin to make it work. This will disable the privacy setting we check for, because in 2.0, it doesn't exist. For those of you that haven't tried 2.2 yet, when you post a status update, there's a drop-down box where you can set the privacy for that specific message.

To make the change, edit the /plugins/community/jfbcactivities.php file, and at line 35, comment out the privacy check so it looks like:
//if (!$this->checkPrivacy())
        //    return;

When we release the full version, we'll have a check for 2.0 vs 2.2 to skip the privacy check.

Matthias,
I'm assuming you're using JomSocial's Facebook integration as well. You shouldn't, as it can cause conflicts or try to create different user's than onese already created by JFBConnect. For more information, see:
www.sourcecoast.com/jfbconnect/docs/thir...ration-for-jomsocial

If there's something you're missing by disabling the JomSocial integration, let us know. We believe (especially now with this post-to-wall plugin) we have at least all the features of their integration, plus plenty more.

Thanks, everyone, for your feedback,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11696 by bobmeetin
I must have been a troubled child. Oops someone may be reading this. So Alex I made the change you suggested on www.joomlatest.us:

function onProfileStatusUpdate($poster, $prevStatus, $newStatus)
{
if (!$this->params->get('pushStatusUpdate'))
return;

// if (!$this->checkPrivacy())
// return;

$user = JFactory::getUser();
if ($this->isFacebookUser() && $user->get('id') == $poster)
{
$this->postFBMessage($newStatus);
}
}

I then went to the JS Activity Stream and posted a couple messages (logged in via Facebook of course). Checked Facebook for This email address is being protected from spambots. You need JavaScript enabled to view it. and still no dice. I then logged out of Joomlatest.US and back in and checked Facebook again and da nada. There must be a secret handshake that I'm missing?
The topic has been locked.
Support Specialist
12 years 9 months ago #11697 by alzander
Bob,
I just got into your site and installed/used extPlorer to add some logging to the status update flow. Basically, our plugin is getting loaded, but the onProfileStatusUpdate function isn't being called. I then added some logging to the /components/com_community/models/status.php file, in the update function (commented out, but you can see it easily at the top if you want to re-enable). This logging isn't getting called, which means something else is going on.

The log, which shows the initialization of our plugin, is getting spit out to /logs/jfbc.log.

Do you have anything that would be overriding or intercepting calls to JomSocial's status updates? JomSocial lets other extensions easily override their functions, but if they aren't triggering the onProfileStatusUpdate event (which we use), that could obviously be a problem.

Let me know what you find or if you have any information.

Thanks,
Alex
The topic has been locked.
Support Specialist
12 years 9 months ago #11698 by alzander
Oh yeah, if any of the other 2.0'ers make the update, please let us know how it goes for you!
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11711 by bobmeetin
We have Liftoff? Well not exactly but inched closer to a solution.

You might, might not have noticed but I also installed sometime back for testing the "Activity Comment" component from Socialcode. This app adds a bunch of missing commenting options on the Jomsocial Home Page. Looks good yes? On a hunch I clicked on my Profile page, then posted a message from the core jomsocial input textarea, this message:

"With Activity Comment enabled, I am posting this message from Profile / My Status input field"

Lo and behold it posted to Facebook. How dreadful! Well maybe not? There is also an Activity Comment plugin (another hunch and I wish I got paid for hunches). If you go into Joomla plugins and edit the Activity Comment plugin you will find Plugin parameters with a parameter called: "Auto Update Status". I toggled it from No to Yes and tested again from the JS Home page.

So back to Facebook and this time the Secret Handshake worked. It posted.
The topic has been locked.
Support Specialist
12 years 9 months ago #11724 by alzander
If I'm reading everything above correctly, it sounds like it's working now. Can't tell if you're super happy with how it's working though, so let us know if you're still needing anything from us or if there's anything else we can do.

I love to see progress though! :)
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11725 by bobmeetin
I'm this side of ecstatic - it's called controlled enthusiasm. With your plugin now available and knowing how the Activity Comments plugin must be configured so that they work symbiotically together this is great! You will need to add this note to your documentation page as a gotcha. Much thanks.
The topic has been locked.
Support Specialist
12 years 9 months ago #11740 by alzander
Fantastic. Glad to hear it's working and hits your needs. We'll be releasing the plugin to all later this month. Don't think there will be big changes in it, but if you run into any issues or need anything, lemme know.

Glad this thread will finally be going away :)
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11926 by thegrindlab
Absolutely, please send me this plugin too! Been awaiting this a loooooooooooooo- (pant, pant, take a deep breath) -ooooooooong time!

Thank you.
Moni
The topic has been locked.
Support Specialist
12 years 9 months ago #12008 by alzander
Moni,
Sorry for not getting back to you sooner. We just posted the plugin to the download area.

For everyone that it was emailed to - Please get this version and uninstall the one sent to you. This has minor modifications that should make it work for JS 2.2 (with privacy validation) or 2.0 (without privacy checks), but shouldn't really change any functionality. However, we changed the name of the plugin from what we sent, so if you install the 'new' one and leave the other enabled, you will get 2 posts to the user's FB wall.

As always, feedback welcome. We would recommend creating a new thread though if there's specific issues or suggestions for improvements.

Thanks,
Alex
The topic has been locked.