def upload_profile_cover filename
      # The Marketing API should be enabled for the APP to use this feature
      raise_not_provided_error unless switch_to_page

      media_info = page_client.put_picture(filename)
      page_client.put_connections("me", "/", { cover: media_info['id'] })
    end
def upload_profile_cover filename
      # The Marketing API should be enabled for the APP to use this feature
      raise_not_provided_error unless switch_to_page

      media_info = page_client.put_picture(filename)
      page_client.put_connections("me", "/", { cover: media_info['id'] })
    end
AFAIK, profile covers only provided on pages, not users