  In this work we study spin-0 particles described by the Klein-Gordon
oscillator formalism in a spacetime which structure is determined by a
homogeneous magnetic field and a cosmological constant. For this purpose we
take into account a framework based on the Bonnor-Melvin solution with the
inclusion of the cosmological constant. We write the Klein-Gordon equation and
the effect of a scalar potential is also considered.
