public void Install()
        {
            var keyIdentifier = _settingService.GetSocialSettingByKey <FacebookSocialAuthSettings>("ClientKeyIdentifier");
            var clientSecret  = _settingService.GetSocialSettingByKey <FacebookSocialAuthSettings>("ClientSecret");

            if (keyIdentifier == null && clientSecret == null)
            {
                var settings = new FacebookSocialAuthSettings
                {
                    ClientKeyIdentifier = "",
                    ClientSecret        = ""
                };
                _settingService.SaveSetting(settings);
            }
        }
        //[AdminAuthorize]
        //[ChildActionOnly]
        public ActionResult Configure(ConfigurationModel model)
        {
            if (!_permissionService.Authorize("ManageSocialSettings"))
            {
                return(Content("Access denied"));
            }

            if (!ModelState.IsValid)
            {
                return(Configure());
            }

            var facebookSocialAuthSettings = _settingService.LoadSetting <FacebookSocialAuthSettings>();

            //save settings
            facebookSocialAuthSettings.ClientKeyIdentifier = model.ClientKeyIdentifier;
            facebookSocialAuthSettings.ClientSecret        = model.ClientSecret;

            _settingService.SaveSetting(facebookSocialAuthSettings);

            SuccessNotification("Facebook Settings Saved Successfully!");

            return(Configure());
        }