Read actions may only be published when: a) you allow users to remove any read stories you publish to Facebook and include this option on the same page where you host the article.It still doesn’t meet our criteria to become available to users.
I get the following error when trying to remove a story: Fatal error: Call to a member function get() on a non-object in /home/angels/public_html/models/components/com_jfbconnect/controllers/opengraph.php on line 122
if ($response->status)
echo $response->message;
else
{
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$configModel = $jfbcLibrary->getConfigModel();
if ($configModel->getSetting('facebook_display_errors') && $response->message != "")
echo "Error: " . $response->message;
}
exit;
}private function disableAction($id)
{
$user = JFactory::getUser();
$userModel = JFBConnectModelUserMap::getUser($user->get('id'));
$ogDisabledActions = $userModel->params->get('og_actions_disabled', array());
$actionModel = $this->getModel('OpenGraphAction', 'JFBConnectModel');
$action = $actionModel->getAction($id);
$actionId = $action->id;
if ($action->can_disable)
$ogDisabledActions->$actionId = 1;
$userModel->saveParameter('og_actions_disabled', $ogDisabledActions);
}$user = JFactory::getUser();
$userModel = JFBConnectModelUserMap::getUser($user->get('id'));
$userData = $userModel->getData(); // ADD THIS
$ogDisabledActions = $userData->params->get('og_actions_disabled', new stdClass()); // UPDATE THISI'm asking for you to test, because how could you see above, I can not see this error has
Steps to post an Open Graph 'news.reads' action to the Timeline
1 - Access www.contangels.com.br (Image 1)
2 - In the top right, login with Facebook Credentials. (Image 1)
3 - Navigate to www.contangels.com.br/models/index.php/n...teceu-no-ultimo-spfw (Image 2)
* This is available from the "News" menu item
4 - After about 15 sec the blue box will appear in the bottom right corner of screen. In the box is an option to delete the action or to see all actions that have been posted to the user's Timeline. (Image 2)
5 - In the blue box, selecting "See all activity" will allow the user to delete any actions that have been posted to their Timeline. (Image 3)
6 - In the blue box, selecting "Delete and Disable" will delete the just-posted read action (named "Ler") and bring the user to a page where they can disable future Open Graph Actions (Image 4)
7 - If disabled, when you navigate to the same page, or any other page, in the News section, the news.reads action will be posted for the user.
Finally, if a user visits a page that has already been posted to their Timeline, a notification blue box will appear in the bottom right letting them know when it was posted. There is also a link in the box to See All Activity, where they can delete the action and navigate to their overall Open Graph settings to disable future sharing.
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
