In this paper, we deal with the fractional p(.,.)-Laplacian problem with nonlocal Neumann boundary conditions. Applying the Ekeland principle and the variational method, under appropriate assumptions, we show that the above problem has nontrivial weak solutions.