The methods Facebook uses to thwart ad-blocking technology have been criticised by web developers.