Existence of solutions to the generalized periodic fractional boundary value problem