Is it possible to upload an HTML file to the root directory in Webflow for Facebook verification?

TL;DR
  • Use the Facebook meta tag method by pasting the provided code into Webflow’s Project Settings > Custom Code > Head Code, then publish your site.  
  • Alternatively, verify your domain through DNS TXT records via your domain registrar's settings.

Webflow does not support uploading individual HTML files to the root directory, which means you cannot upload a facebook-verification.html file directly for Facebook domain verification.

1. Use Meta Tag Instead of HTML File

  • Facebook offers multiple verification methods, and with Webflow, the recommended method is the HTML meta tag.
  • In Facebook Business Manager, choose “Add a meta tag to your HTML source code” instead of uploading a file.

2. Add the Meta Tag in Webflow

  • Go to Project Settings in Webflow.
  • Navigate to the Custom Code tab.
  • In the Head Code section, paste the Facebook-provided meta tag.
  • Be sure to save changes and publish your site for the tag to appear on the live version.

3. Verify the Domain in Facebook

  • Return to Facebook Business Manager (under Domains).
  • Click Verify after you’ve published your Webflow site with the meta tag.
  • Facebook will scan the site and should detect the meta tag if everything is correct.

4. Alternative Option: DNS Verification

  • Another supported method is to verify your domain via DNS TXT records.
  • This can be set through your domain registrar (e.g., GoDaddy, Google Domains).
  • Choose the DNS verification method in Facebook and add the provided record where you manage your DNS settings.

Summary

You cannot upload an HTML file to Webflow’s root directory, but you can verify your domain with Facebook using the meta tag method or DNS record verification, both of which are compatible with Webflow.

Rate this answer

Other Webflow Questions