more type checking for NSURL on facebook handler