New method for solving a class of FPDE with applications