def get_platform_settings():
s = settings.PLATFORMS<EOL>if hasattr(settings, '<STR_LIT>') and settings.FACEBOOK:<EOL><INDENT>s.append({<EOL>'<STR_LIT:class>': '<STR_LIT>',<EOL>'<STR_LIT>': settings.FACEBOOK,<EOL>})<EOL><DEDENT>return s<EOL>
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.