You cannot upload an HTML file to the root directory in Webflow, which makes direct file-based Facebook domain verification via HTML upload unsupported. However, you can verify your domain using one of the alternative methods Facebook provides.
1. Use the DNS TXT Record Method (Recommended for Webflow)
- Log into your Facebook Business Manager, go to Brand Safety > Domains, and initiate the domain verification process.
- Choose the DNS Verification method.
- Facebook will provide a TXT record (something like
facebook-domain-verification=xxxxxxxxxx
). - In Webflow, go to your Project Settings > Hosting tab.
- Scroll to the Custom Domains section and click Edit DNS Settings (this redirects to your domain registrar).
- In your registrar's DNS settings, add a new TXT record:
- Name or Host:
@
(or leave blank, depending on registrar) - Type: TXT
- Value: Paste the Facebook TXT value
- In Facebook Business Manager under Domain Verification, select the Meta Tag method.
- Copy the
<meta>
tag provided. - In Webflow, go to Project Settings > Custom Code.
- In the Head Code section, paste the entire
<meta>
tag. - Click Save Changes and Publish your site to the connected domain.
- Return to Facebook and click Verify.
Note: This meta tag must be placed on the domain's homepage and be present in the <head>
section.
Summary
You cannot upload HTML files to the root in Webflow, so Facebook's HTML file verification doesn’t work. Instead, use the DNS TXT record method (recommended) or the meta tag method within Webflow’s Custom Code settings.