× Joomla Facebook Connect support forum

Topic-icon Version 2.5 feature

Active Subscriptions:

None
14 years 5 months ago #2252 by ceshelman
And JUST when I was considering changing to the default JomSocial FBConnect functionality you come along and up the anti again. Nice job SourceCoast!!

In the change log for 2.5 it lists:
- Added ability to post status message updates to Facebook on registration or login. Also available to 3rd party devs

The part that caught my eye was "Also available to 3rd party devs." Any documentation on how to use this feature?

Thanks,
Carl.
The topic has been locked.
Support Specialist
14 years 5 months ago #2253 by alzander
Replied by alzander on topic Version 2.5 feature
Carl, great to hear from ya. We made a somewhat-shout out to you in this new version by doing a check for your plugin. Hope it helps get more visibility for you. We'd love to have more add-ons created :) Let us know if you see any issues with it. We only tested the check briefly, and can update it in the next one if you have suggestions.

As for the status messages, we tried to make it pretty darn simple. Just do:
	include_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
	JFBConnectFacebookHelper::setFacebookMessage("is doing something");

The setFacebookMessage call will do the proper checking to ensure that the admin has allowed 3rd parties to add status messages, will ensure it's not blank, and then ensure that Facebook accepts it properly (user allows status updates from the app) and catch any errors. Basically, just fire and forget with no return status for now.
Do look at this post which describes some minor issues with status updates for now:
<!-- m --><a class="postlink" href="www.cmsmarket.com/forum/index.php?f=38&t...rb_v=viewtopic#p2247">www.cmsmarket.com/forum/index.ph ... opic#p2247

As for going for JomSocial only, I wouldn't argue with you on creating something specific for JomSocial. We're planning on updating our JFBCInvite to have a setting to work with JomSocial or JFBConnect so it's one module to fit them both. Then as we add features, it should hopefully work across both as well, which makes it easier than having 2 separate packages out there. As for JFBConnect, we'll be the first to admit this release took too long. We have a bunch more feature ideas, and we really want to focus on tighter integration between Joomla and Facebook stuff whereas JomSocial is, in a way, trying to recreate Facebook on the Joomla site. We love JS though, not knocking it, just different end goals. Also, we work with CB (and have a few sites working using AEC now too), so that's a wider audience you can target.

Either way, let us know if you have any issues working with the new version or any questions. We really cleaned up the code with this release, which was necessary to start wooing more 3rd party devs and promoting it even more. While there's no documentation yet, we'll try to come up with a few pointers.
The topic has been locked.
Support Specialist
14 years 5 months ago #2254 by alzander
Replied by alzander on topic Version 2.5 feature
Actually, the most proper way to set the message would be like so:
include_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
$fbClient = JFBConnectFacebookHelper&#58;&#58;getFbClient(); //setup the Facebook client library
if ($fbClient->user) // Check if Facebook thinks there's a user logged in
   JFBConnectFacebookHelper&#58;&#58;setFacebookMessage("is doing something");

The first lines I put will probably work too, but I haven't tested them on their own. Everywhere in our code, we've already verified the user exists, and just want to make sure I don't steer you wrong.
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #2261 by ceshelman
Replied by ceshelman on topic Version 2.5 feature
I noticed the check for the FBComments plugin when I installed the new version of JFBConnect. Thanks for the plug!!!!!

I am going to try to integrate a few apps with the JFBConnect message functionality. I will keep you posted as I make progress.

Thanks, Carl.
The topic has been locked.