added facebook login check and desktop redirect