def force_mobile(url):
    """
    Force a url to use the mobile site.
    """
    parsed = urlparse.urlparse(url)
    # Ensure a protocol is given (needed by selenium).
    scheme = parsed.scheme or "https"
    return urlparse.urlunparse((scheme,
                                "mobile.facebook.com",
                                parsed.path,
                                parsed.params,
                                parsed.query,
                                parsed.fragment))

    Force a url to use the mobile site.
    
deletefb/tools/common.py