FWIW, I’ve entered the lines below into Site Blocking

facebook.com
twitter.com
fbcdn.net
fbcdn.com

and they work perfectly. If I click on a Facebook or Twitter link, or enter http://www.facebook.com in the browser, I get the
avast! Web Shield Warning
Site Blocked

avast! has blocked access to the site (based on a user-defined list of blocked URLs).