use catch to prevent javascript to stop working because FB