public function insertComment($data, $options = false) { $result = parent::insertComment($data, $options); if ($result && client_action::hasOpenGraphStory('comment_on', 'recipe')) { $request = new Onxshop_Request("component/client/facebook_story_create~" . "action=comment_on" . ":object=recipe" . ":node_id=" . $_SESSION['active_pages'][0] . "~"); } return $result; }
protected function createFacebookStory() { if (client_action::hasOpenGraphStory('enter', 'competition')) { $request = new Onxshop_Request("component/client/facebook_story_create~" . "action=vote_in" . ":object=poll" . ":node_id=" . $_SESSION['active_pages'][0] . "~"); } }