We evaluated the response rate, acceptability, and effectiveness of a preventive programme offering rapid HIV and other STI testing, as well as sexual counselling to gay, bisexual, and other men who have sex with men (GBMSM) via dating apps over a 4-year period. The programme was carried out in 9 out of the 10 districts in the city of Barcelona, Spain. The response rate was defined as the proportion of people responding to the message sent, acceptability as the proportion of those responding favourably, and effectiveness as the proportion of users requesting a test. We performed univariate analysis and multivariate logistic regression in relation with the response rate, acceptability and effectiveness. A total of 5,254 messages were send to different users. The response rate was 33.1% (n = 1,741), acceptability was 86.2% (n = 1,500), and effectiveness was 10.1% (n = 532). The factors associated with user response were recent connection to the app (aOR = 1.85; CI:1.39–2.46) and the presence of a profile photograph (aOR = 1.34; CI:1.11–1.64). Acceptability was associated with recent connection to the app (aOR = 1.98; CI:1.09–3.58). Effectiveness was associated with lower reported age (aOR = 0.98; CI:0.97–0.99), contact before 14:00 (aOR = 2.47; CI: 1.77–3.46), and recent connection to the app (aOR = 4.89; CI:1.98–12.08). Effectiveness was also greater in districts that were more disadvantaged or had fewer sexual health services. This study demonstrates that the use of these apps is an acceptable and effective method of prevention and sexual health promotion in GBMSM in this setting and identifies the associated factors that could guide such interventions.