/**
  * {@inheritdoc}
  */
 public function process(ConsumerEvent $event)
 {
     $message = $event->getMessage();
     $userId = $message->getValue('user_id');
     $cocktailId = $message->getValue('cocktail_id');
     $timestamp = $message->getValue('date');
     $user = $this->userRepository->findOneById($userId);
     if (!$user instanceof User) {
         throw new InvalidParameterException('invalid user id');
     }
     $cocktail = $this->cocktailRepository->findOneById($cocktailId);
     if (!$cocktail instanceof Cocktail) {
         throw new InvalidParameterException('invalid cocktail id');
     }
     if ($user->isConnectedWithFacebook()) {
         $accessToken = $user->getFacebookAccessToken();
         $cocktailUrl = $this->appUrl . $cocktail->getRelativeUrl();
         $this->client->setAccessToken($accessToken);
         $response = $this->client->hadCocktail($cocktailUrl, $timestamp);
         // TODO analyze response and log errors
     }
 }