Ho to configure thumbnail to facebook share

I solved this problem in a previous version of Nextcloud, but it’s come back and I can’t find where to change the image that Facebook calls up.

I use the Theming app, I’ve set up a logo, header logo and favicon via the app. But when I share a link on Facebook, that’s not what’s displayed. Either it’s the nextcloud logo or, since I went to Sharing Debugger - Meta for Developers this morning, nothing at all…

If I ask the facebook tool to analyse the main page of the cloud, it displays a white Nextcloud logo on a grey background, with the warning
Missing properties The following required properties are missing: fb:app_id.

If I ask it to analyse a page to a shared file, I get no image at all, and the warning
Invalid image content type The URL og:image provided, https://cloud.mondomaine.com/apps/files_sharing/publicpreview/tfgbQEEaFXDQ8x5?file=/Partages/Document.pdf&x=200&y=200, could not be processed as an image because it includes an invalid content type.

How can I get Facebook to display my personal logo?

Nextcloud version : 25.0.2
Operating system and version : Debian 11
Nginx version : nginx/1.18.0
PHP version : PHP 7.4.33