change in facebook mode detection. use Env.fb.mode=='canvas' for detection