Greetings Alex,
I found this code on one of the developers pages:
require_once JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'libraries'.DS.'facebook.php';
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$post = 'is doing something';
$post = '
www.sourcecoast.com/jfbconnect';
if ($jfbcLibrary->getUserId()) // Check if there is a Facebook user logged in
$jfbcLibrary->setFacebookMessage($post);
Running the code works fine up till:
if ($jfbcLibrary->getUserId()) // Check if there is a Facebook user logged in
I'm rendering this on the K2 item.php template. At which point I get 500.
Is this correct code? Is there a proper reference somewhere to understand how the JFBConnect object works?
I want to merely check to see if a logged in user is connected via facebook link or something else.
Thanks,
p.