code: def get_platform_settings():
      
  
      s = settings.PLATFORMS
  
      if hasattr(settings, 'FACEBOOK') and settings.FACEBOOK:
          s.append({
              'class': 'bernard.platforms.facebook.platform.Facebook',
              'settings': settings.FACEBOOK,
          })
  
      return s
docs: Returns the content of `settings.PLATFORMS` with a twist.
  
      The platforms settings was created to stay compatible with the old way of
      declaring the FB configuration, in order not to break production bots. This
      function will convert the legacy configuration into the new configuration
      if required. As a result, it should be the only used way to access the
      platform configuration.