Ejemplo n.º 1
0
 public function delete(KalturaDistributionDeleteJobData $data)
 {
     try {
         if ($data->entryDistribution->remoteId) {
             FacebookGraphSdkUtils::deleteUploadedVideo($this->appId, $this->appSecret, $data->distributionProfile->pageAccessToken, $data->entryDistribution->remoteId);
         } else {
             throw new Exception(" Remote id is empty - nothing to delete");
         }
     } catch (Exception $e) {
         throw new Exception("Failed to delete facebook video , reason:" . $e->getMessage());
     }
     return true;
 }