Fix NullPointerException in facebook