How to Verify Your Domain for Facebook Using DNS or HTML Upload

Verifying your domain on Facebook is essential if you want to run ads, use Facebook Pixel, or control link previews for your website. Facebook offers three main ways to verify your domain:

1️⃣ DNS Verification (Recommended)
2️⃣ HTML File Upload
3️⃣ Meta Tag Verification

This guide focuses on DNS and HTML upload, as they are the most reliable methods.

✅ Method 1: DNS Verification (Recommended)

DNS verification is the best option if you have access to your domain's DNS settings.

🔹 Steps to Verify via DNS

1️⃣ Go to Facebook Business Manager

  • Log in to Meta Business Manager

  • Click Brand Safety > Domains

  • Click Add and enter your domain (e.g., yourstore.com)

2️⃣ Copy the TXT Record

Facebook will provide a TXT record that looks like this:


ini

facebook-domain-verification=xxxxxxxxxxxxxx

3️⃣ Add the TXT Record to Your Domain's DNS Settings

  • Go to your domain provider’s dashboard (e.g., Shopify, GoDaddy, Cloudflare, Namecheap)


  • Find DNS settings or Manage DNS


  • Add a new TXT Record

    • Host/Name: @

    • Type: TXT

    • Value: Paste the code from Facebook

4️⃣ Save and Wait for DNS Propagation

  • DNS updates may take 15 minutes to 48 hours to reflect.

5️⃣ Verify in Facebook Business Manager

  • Go back to Facebook Business Manager

  • Click Verify under your domain

  • If successful, your domain will be marked as verified 🎉

✅ Method 2: HTML File Upload

If you prefer uploading a file instead of modifying DNS, use the HTML verification method.

🔹 Steps to Verify via HTML File Upload

1️⃣ Go to Facebook Business Manager

  • Log in to Meta Business Manager

  • Click Brand Safety > Domains

  • Add your domain and select HTML File Upload

2️⃣ Download the HTML File

Facebook provides a file like:

pgsql

facebook-domain-verification.html

3️⃣ Upload the File to Your Website’s Root Directory

  • If using Shopify, you can’t upload files directly, so this method won’t work for Shopify stores. Use DNS verification instead.


  • If using WordPress or another hosting service, upload the file via cPanel, FTP, or File Manager to the root directory (public_html).

4️⃣ Verify in Facebook Business Manager

  • Go back to Facebook Business Manager

  • Click Verify

  • If successful, your domain will be marked as verified 🎉

❓ Common Issues & Fixes

🔸 DNS verification not working?
✔️ Double-check that the TXT record is correctly added under the right domain.
✔️ Wait 24-48 hours for DNS propagation.
✔️ Clear your browser cache before verifying.

🔸 Can’t upload HTML to Shopify?
✔️ Use DNS verification, as Shopify doesn’t allow direct file uploads.

🚀 Final Thoughts

Domain verification ensures better control over your brand’s content and Facebook ad performance. DNS verification is the best method for Shopify and most other platforms.

At Windborne Solutions, we specialize in building high-performing Shopify stores and setting up seamless Facebook integrations. If you need expert guidance, check out our work here.