예제 #1
0
 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;
 }
예제 #2
0
 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] . "~");
     }
 }