public function populateAppIds($e)
    {
        $appsArray = $e->getParam('apps');

        $appService = $e->getTarget()
        ->getServiceManager()
        ->get('playgroundfacebook_app_service');
        $apps = $appService->getAvailableApps();

        foreach ($apps as $app) {
            $app_label = '';
            if ($app->getAppName()) {
                $app_label .= $app->getAppName();
            }
            if ($app->getAppId()) {
                $app_label .= ' ('.$app->getAppId().')';
            }
            $appsArray[$app->getAppId()] = $app_label;
        }

        return $appsArray;
    }