Facebook Wall Posts from Joomla

If you have another component that you want to be able to post status updates, new comments/reviews, whatever to a user's profile, the below code should do it. It does not ask for a user's permission to do so, but does require the granted permission of "Stream Publish". Stream publish is requested when a user first registers using their FB profile. If they do not grant it then, or later, Facebook will ignore the request to update the user's status:

require_once JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'libraries'.DS.'facebook.php';
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$post['message'] = 'is doing something';
$post['link'] = 'http://www.sourcecoast.com/jfbconnect';
if ($jfbcLibrary->getUserId()) // Check if there is a Facebook user logged in
   $jfbcLibrary->setFacebookMessage($post);

Add the power of Facebook to your Joomla site today!

Subscriptions to JFBConnect entitle you to unlimited support, usage on multiple domains, and access to all new Joomla 1.5, Joomla 1.6, Joomla 1.7 and Joomla 2.5 releases for the duration. Subscriptions are non-recurring and you are free to continue using JFBConnect after your subscription expires!

megaphoneStay up to date with new releases and features. Join our newsletter: