In the paper we consider a boundary value problem involving a differential equation with the fractional Laplacian (−∆) α/2 for α ∈ (1, 2) and some superlinear and subcritical nonlinearity Gz provided with a nonhomogeneous Dirichlet exterior boundary condition. Some sufficient conditions under which the set of weak solutions to the boundary value problem is nonempty and depends continuously in the Painlevé-Kuratowski sense on distributed parameters and exterior boundary data are stated. The proofs of the existence results rely on the Mountain Pass Theorem. The application of the continuity results to some optimal control problem is also provided.