/**
  * Returns the actions that are registered for the object by
  * $wgFbOpenGraphCustomActions.
  */
 public function getCustomActions()
 {
     $actions = array();
     $customObjects = FacebookOpenGraph::getActionObjects();
     if (!empty($customObjects)) {
         // Start with actions matching the specified object
         $type = $this->getType();
         if (isset($customObjects[$type])) {
             $actions = $customObjects[$type];
         }
         // Merge in actions matching all objects ('*')
         if (isset($customObjects['*'])) {
             $actions = array_merge($customObjects['*'], $actions);
         }
     }
     return $actions;
 }