We develop a model for ferromagnetic resonance in systems with competing uniaxial and cubic anisotropies. This model applies to i) magnetic materials with both uniaxial and cubic anisotropies, and ii) magnetic nanoparticles with core and effective surface anisotropies. We numerically compute the resonance frequency as a function of the field and the resonance field as a function of the direction of the applied field for an arbitrary ratio of cubic-to-uniaxial anisotropy. We also provide some analytical approximate expressions in the case of weak cubic anisotropy. We propose a method that uses these expressions for estimating the uniaxial and cubic anisotropy constants, and for determining the relative orientation of the cubic anisotropy axes with respect to the crystal principle axes. This method is applicable to the analysis of experimental data of resonance type measurements.