th site.Params.social }}
  {{- if reflect.IsMap . }}
    {{- with .facebook_app_id }}
      {{- $facebookApp = . }}
    {{- end }}
  {{- end }}
{{- end }}

{{- $facebookAdmin := "" }}
{{- with site.Params.social.facebook_admin }}
  {{- $facebookAdmin = . }}
{{- else }}
  {{- with site.Social.facebook_admin }}
    {{- $facebookAdmin = . }}
    {{- $hugoVersion := "0.120.0" }}
    {{- if ge hugo.Version $hugoVersion }}
      {{- warnf "The social key in site configuration is deprecated. Use params.social.face