This study addresses the nonlinear forced vibration of a functionally graded (FG) nanobeam subjected to mechanical impact and electromagnetic actuation. Two symmetrical actuators were present in the mechanical model, and their mechanical behaviors were analyzed considering the symmetry in actuation. The model considered the longitudinal–transverse vibration of a simple supported Euler–Bernoulli beam, which accounted for von Kármán geometric nonlinearity, including the first-order strain–displacement relationship. The FG nanobeam was made of a mixture of metals and ceramics, while the volume fraction varied in terms of thickness when a power law function was used. The nonlocal Eringen theory of elasticity was used to study the simple supported Euler–Bernoulli nanobeam. The nonlinear governing equations of the FG nanobeam and the associated boundary conditions were gained using Hamilton’s principle. To truncate the system with an infinite degree of freedom, the coupled longitudinal–transverse governing equations were discretized using the Galerkin–Bubnov approach. The resulting nonlinear, ordinary differential equations, which took into account the curvature of the nanobeam, were studied via the Optimal Auxiliary Functions Method (OAFM). For this complex nonlinear problem, an explicit, analytical, approximate solution was proposed near the primary resonance. The simultaneous effects of the following elements were considered in this paper: the presence of a curved nanobeam; the transversal inertia, which is not neglected in this paper; the mechanical impact; and electromagnetic actuation. The present study proposes a highly accurate analytical solution to the abovementioned conditions. Moreover, in these conditions, the study of local stability was developed using two variable expansion methods, the Jacobian matrix and Routh–Hurwitz criteria, and global stability was studied using the Lyapunov function.