/** * * Unsubscribe to Instagram from a Link generated via the admin. Just forwards to the service. * * */ public function unsubscribe() { $is = new InstagramService(); if ($is->unsubscribeRealtime()) { return $this->redirect('admin/instagram-settings/InstagramSubscription/EditForm/field/InstagramSubscription/item/' . Session::get('InstaSub') . '/edit'); } else { throw new Exception('Unable to unsubscribe to Instagram. See logs for more info.'); } }