//Need to make an AJAX call to front-end to get the SEF URL
$http = JHttpFactory::getHttp();
$sef = $http->get(JUri::root() . 'index.php?option=com_jfbconnect&task=ajax.sef&url=' . base64_encode($link));
if ($sef && $sef->code == 200)
$link = $sef->body;
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.