def METHOD_NAME(self, request):
    settings = self.get_settings()
    sdk_url = settings.get("SDK_URL", "//connect.facebook.net/{locale}/sdk.js")
    field_names = [
        tup[1] for tup in string.Formatter().parse(sdk_url) if tup[1] is not None
    ]
    if "locale" in field_names:
        locale = self.get_locale_for_request(request)
        sdk_url = sdk_url.format(locale=locale)
    return sdk_url