If we ask for permission for read_insights or manage_pages, will JFBConnect allow us to retrieve the data and where can it be accessed ? is there a way to map it somewhere in Joomla ?alzander wrote: We should be able to detect the Page ID
$pageId = $request['page'];
if ($pageId == '12345')
$userId = 62;
else if ($pageId == '34342')
$userId = 78;
else // Unknown page
$userId = 99;//modifications pour activ ha
$pageId = $request['page'];
if (isset($pageId[1])) {
// find userlikes in BD todo search for contains instead of egals
$db->setQuery("select id from #__comprofiler where block = 0 and cb_fblikes = '" . $pageId[1] . "'");
$row = $db->loadResult();
if ($row) {
$userId = $row;
}
else // unknown page set demo user
$userId = 694;
$profileRedirect = $jSession->get('jfbcProfileRedirect', true); //pour rediriger une seule fois vers user ou demo 694
if ($profileRedirect)
{
$jSession->set('jfbcProfileRedirect', false);
//$mappedFbUserId = $this->jfbcLibrary->getFbUserId();
//$userMapModel = new JFBConnectModelUserMap();
//$jUserId = $userMapModel->getJoomlaUserId($mappedFbUserId);
$jUserId = $userId;
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') != '694')) // Fixed profile, no FB user on Joomla site
//redirection sur deals demo
$app->redirect('index.php?option=com_m2c&view=m2c&Itemid=438');
}
// fin des modifications
$tabTemplate = $this->configModel->getSetting('canvas_tab_template');
$app->setTemplate($tabTemplate);This is the kind of thing that we want to achieve.alzander wrote: , it would only be for the administrator of the Joomla site to be able to push content from Joomla to their page
https://www.facebook.com/dialog/pagetab?app_id=YOUR_FB_APP_ID&display=popup&next=http://www.YOURSITE.com/Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
