$tabTemplate = $this->configModel->getSetting('canvas_tab_template');
$app->setTemplate($tabTemplate); $mappedFbUserId = $this->jfbcLibrary->getFbUserId();
$userMapModel = new JFBConnectModelUserMap();
$jUserId = $userMapModel->getJoomlaUserId($mappedFbUserId)
if ($jUserId && (JRequest::getCmd('option') != 'com_comprofiler' || JRequest::getCmd('user') != $jUserId)) // FB user has a profile on the Joomla site
$app->redirect('index.php?option=com_comprofiler&task=userprofile&user='.$jUserId);
else if (!$jUserId && (JRequest::getCmd('option') != 'com_comprofiler' || JRequest::getCmd('user') != 'yyyy')) // Fixed profile, no FB user on Joomla site
$app->redirect('index.php?option=com_comprofiler&task=userprofile&user=yyyy');
$tabTemplate = $this->configModel->getSetting('canvas_tab_template');
$app->setTemplate($tabTemplate);$jUserId = $userMapModel->getJoomlaUserId($mappedFbUserId);$profileRedirect = $jSession->get('jfbcProfileRedirect', true);
if ($profileRedirect)
{
$jSession->set('jfbcProfileRedirect', false);
$mappedFbUserId = $this->jfbcLibrary->getFbUserId();
.... all the other code here own to the $app->redirect
}
$tabTemplate = $this->configModel->getSetting('canvas_tab_template');
$app->setTemplate($tabTemplate);if this is a page, will the Facebook userid still be used to show the user initial page ?
Well I am not a PHP developer but I have basic skills to correct basic things I think.alzander wrote: Do you have (or are you) a PHP developer?
This is fine but what I would like to know is if JFBConnect can check whether the FB Page on which our app is installed is linked to a user in Joomla ?alzander wrote: I believe all the info you're asking is basically what happens if the user goes to different FB Pages with your app installed, what will happen. The answer would be that we'll re-check if the user has Like'd the Page first, and show the Reveal page if not..
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
