// Add the Open Graph links to the user edit form.
if ($this->jfbcLibrary->userIsConnected() && JRequest::getCmd('option') == 'com_users' && JRequest::getCmd('view') == 'profile')
{
$document = JFactory::getDocument();
$output = $document->getBuffer('component');
$newLinks = '<a href="' . JRoute::_('index.php?option=com_jfbconnect&controller=opengraph&layout=activity') . '">View Facebook Timeline activity</a>';
$newLinks .= '<br/><a href="' . JRoute::_('index.php?option=com_jfbconnect&controller=opengraph&layout=settings') . '">Change Facebook Timeline settings</a>';
$contents = $output . $newLinks;
$document->setBuffer($contents, 'component');
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.