This article describes how to Block facebook.com, but Allow developer.facebook.com
Steps to Block www.facebook.com, but Allow developer.facebook.com:

Enable blocking for “Google QUIC” App
Google Chrome can evade DPI-SSL CI by using Google QUIC protocol (UDP/443)

www.facebook.com